Giter Site home page Giter Site logo

lupusjm / instadownloader Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 28 KB

InstaDownloader makes it easy to download Instagram stories quickly. It automates the process, allowing users to effortlessly grab media from Instagram profiles.

License: MIT License

Python 100.00%
downloader instagram instagramdownloader python repeating scrape stories instagramstories

instadownloader's Introduction

Instagram Stories Downloader

This script allows you to download Instagram stories from any public account.
You can also automate the script to run at system startup, for example, every 2 hours using Task Scheduler.

How it works

The script operates in several steps:

  1. Opening Web Browser: The script initiates a headless web browser session using Selenium WebDriver.

  2. Navigating to Download Page: It directs the browser to the webpage, which facilitates content downloading from social media platforms.

  3. Inputting Instagram Story URL: The user provides the URL of the Instagram story they wish to download.

  4. Identifying and Downloading Media: The script identifies the type of media (images or videos) present in the story and proceeds to download them to the specified directory.

  5. Recording Downloaded Links: To avoid redundant downloads, the script maintains a record of downloaded_links.txt.

  6. Recording Run Time: The script records the time of execution in the task.txt file, providing a log of script runs.

  7. Error Handling: The script includes error-handling mechanisms to deal with unexpected situations, ensuring smooth execution.

By following these steps, the script enables users to conveniently download Instagram stories for offline viewing.

Installation

  1. Clone the repository:

    git clone https://github.com/LupusJM/InstaDownloader.git
  2. Install Dependencies:

    pip install requests selenium urllib3

Usage

  1. Configuration:

    • Modify the download_folder variable to your target directory. You can right-click on the script, choose "Open With" and select Notepad. Then, change the download_folder variable to point to your desired folder path.
    • Update the instagram_stories_url variable with the URL of the Instagram story you want to download.
  2. Run the Script:

    python main.py
  3. Enjoy your files:


LupusDownloader

LupusDownloader_{username}_{download_date}_{index + 1}.{extension}

  1. Automation with Task Scheduler: Optionally, you can automate the script to run at system startup or at regular intervals using Task Scheduler. This allows you to schedule the script to run, for example, every 2 hours for periodic updates.

Notes

  • Tested and verified in Linux & Windows OS.
  • This script requires the Google Chrome browser and its driver suitable for your operating system.
  • Remember that downloading content from social media platforms may be restricted by copyright and Instagram's terms of service.

License

instadownloader's People

Contributors

lupusjm avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.