Skip to content
This repository was archived by the owner on Jul 25, 2024. It is now read-only.

sujay1599/InstagramTheftyPosterV3.2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Notice: This program is no longer supported. Please refer to the new version of the program: InstagramTheftyScraperPosterHuman

Instagram Thefty Poster V3.2 (OUTDATED)

Instagram Thefty Poster V3.2 builds upon the features of V3.1, introducing several enhancements and new functionalities to improve the automation process of scraping, uploading, and managing Instagram reels.

Features

V3.1 Features

  • All Features from V2: Includes all functionalities from V2, such as scraping reels, uploading with customizable descriptions, adding to stories, interval-based tasks, and encrypted credentials.
  • Enhanced Randomized Actions: More sophisticated random liking, commenting, and forwarding to simulate human behavior better.
  • Improved Dashboard: Enhanced dashboard using the rich library for a more detailed and visually appealing display of activities.
  • Automated Scheduling: More robust scheduling for scraping, uploading, and deletion tasks.
  • Detailed Logging: Improved logging for better traceability and debugging.
  • Additional Configuration Options: More settings for customization in config.yaml.

New Features in V3.2

  • Enhanced Random Waits: Added random waits between scraping, liking, commenting, and uploading actions to better simulate human behavior and reduce the risk of detection by Instagram.
  • Logging of Random Waits: Logged random wait times into a separate file (random-waits.json) for better tracking and debugging.
  • Detailed Logging of Comments: The program now logs the actual comments posted on each reel for better traceability.
  • Improved Error Handling: Enhanced error handling and logging to capture JSONDecodeError and other exceptions, making the script more robust.
  • Improved Dashboard: Updated dashboard to display detailed information about scraping, uploading, and random wait times, as well as the next file to be uploaded.

Requirements

  • Python 3.6+
  • Required Python packages (specified in requirements.txt)

Install Required Packages

You can install all the required packages using the following command:

pip install -r requirements.txt

Installation

  1. Clone the repository:

    git clone https://github.com/sujay1599/InstagramTheftyPosterV3.2.git
    cd InstagramTheftyPosterV3.2
  2. Install the required packages using requirements.txt:

    pip install -r requirements.txt
  3. Run start.py to create the config.yaml file:

    python start.py

    Follow the prompts to enter your configuration details. This will generate a config.yaml file with the necessary settings, including encrypted Instagram credentials.

Configuration

The config.yaml file will be generated by running start.py. It includes the following settings:

instagram:
  username: ENCRYPTED_USERNAME
  password: ENCRYPTED_PASSWORD
key: ENCRYPTION_KEY
scraping:
  enabled: true
  profiles: profile1 profile2
  num_reels: 10
  scrape_interval_minutes: 60
uploading:
  enabled: true
  upload_interval_minutes: 30
  add_to_story: true
description:
  use_original: true
  custom_description: ""
hashtags:
  use_hashtags: true
  hashtags_list: "#example #hashtags"
credit:
  give_credit: true
leave_comment: true
comments:
  - "Nice reel!"
  - "Great post!"
deleting:
  delete_interval_minutes: 1440

Configuration Details

  • Instagram Credentials: Provide your Instagram username and password. These will be encrypted and stored securely.
  • Scraping Settings:
    • enabled: Set to true to enable scraping.
    • profiles: Space-separated list of Instagram profiles to scrape reels from.
    • num_reels: Number of reels to scrape per profile.
    • scrape_interval_minutes: Interval in minutes between scraping sessions.
  • Uploading Settings:
    • enabled: Set to true to enable uploading.
    • upload_interval_minutes: Interval in minutes between uploads.
    • add_to_story: Set to true to add reels to your Instagram story.
  • Description Settings:
    • use_original: Set to true to use the original reel description. If false, you will be prompted to enter a custom description.
    • custom_description: The custom description to use if use_original is false.
  • Hashtags Settings:
    • use_hashtags: Set to true to use hashtags in the reel descriptions.
    • hashtags_list: List of hashtags to include in the reel descriptions (if use_hashtags is true).
  • Credit Settings:
    • give_credit: Set to true to give credit to the original poster in the reel descriptions.
  • Deleting Settings:
    • delete_interval_minutes: Interval in minutes between deletions.
  • Comments:
    • leave_comment: Set to true to leave comments on scraped videos.
    • comments: List of comments to leave if leave_comment is true.

Usage

Run the script:

python main.py

Logging

The script maintains several log files to track activities and debug issues:

  • upload_log.txt: Keeps track of uploaded reels.
  • status.json: Tracks the last action times and other status information.
  • random-upload-times.json: Logs the random sleep times between uploads.
  • random-waits.json: Logs the random wait times between various actions.

Dashboard

Run the dashboard script to view detailed information about scraping, uploading activities, and random wait times:

python dashboard.py

Dashboard

Additional Information

  • Next File to Upload: Displays the next file to be uploaded.
  • Random Wait Times: Shows the logged random wait times to provide insight into the randomness of actions.
  • Detailed Status: Provides a detailed view of the last and next scrape, upload, and delete times.

Differences Between V3.1 and V3.2

Enhancements in V3.2

  1. Enhanced Random Waits:

    • Added random waits between scraping, liking, commenting, and uploading actions.
  2. Logging of Random Waits:

    • Logged random wait times into a separate file (random-waits.json) for better tracking.
  3. Detailed Logging of Comments:

    • Logs the actual comments posted on each reel.
  4. Improved Error Handling:

    • Enhanced error handling and logging to capture JSONDecodeError and other exceptions.
  5. Improved Dashboard:

    • Updated dashboard to display detailed information about scraping, uploading, and random wait times.

Improvements from V3.1 to V3.2

  • Randomized Action Logic: Improved logic to make actions such as liking, commenting, and forwarding more random and human-like.
  • User Interface: A more comprehensive and user-friendly dashboard.
  • Scheduling and Automation: Enhanced scheduling for more reliable automation of tasks.
  • Logging and Debugging: More detailed logging for easier issue identification and resolution.
  • Configurable Options: Greater flexibility with additional configurable options.

Troubleshooting

Common Issues

  1. JSONDecodeError: Ensure the profiles and other configuration details are correct. This error usually occurs when the response from Instagram is not as expected.
  2. Feedback Required: Instagram may require additional verification. Log in to your Instagram account manually and check for any prompts.
  3. File Not Found: Ensure the downloads directory exists and has the necessary permissions.

Tips

  • Regularly check the log files for any errors or issues.
  • Make sure your Instagram credentials are correct and have not been changed or locked by Instagram.
  • Use a stable internet connection to avoid network-related issues.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contributing

Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.

Disclaimer

This script is intended for educational and personal use only. Use it responsibly and ensure you comply with Instagram's terms of service and guidelines.

About

This Python script automates scraping and uploading Instagram reels using the instagrapi library. It scrapes reels from specified profiles, downloads them, and uploads them with new descriptions, optional hashtags, and credits. The script mimics human behavior with random intervals between actions like liking, commenting, and uploading to stories,

Resources

License

Stars

3 stars

Watchers

1 watching

Forks

Packages

 
 
 

Contributors

Languages