Instagram Video Scraper is a Python-based tool designed to download videos from Instagram. This tool leverages the Instagram public API and web scraping techniques to collect videos from user profiles, hashtags, and locations.
- Video Scraping: Download videos from any public Instagram user profile.
- Configurable Output: Choose the output directory and file naming conventions.
- Automated Downloads: Schedule downloads for batch processing.
To install and run the Instagram Video Scraper, follow these steps:
-
Clone the repository:
git clone https://github.com/abdul-28930/InstagramVideoScraper.git cd InstagramVideoScraper
-
Install the required dependencies:
pip install -r requirements.txt
-
Set up Instagram Credentials:
Create a
.env
file in the root directory and add your Instagram credentials:INSTAGRAM_USERNAME=your_username INSTAGRAM_PASSWORD=your_password
Note: Use this tool responsibly and comply with Instagram's terms of service.
-
Run the Scraper:
To start scraping videos, run the following command:
python scraper.py --type <scrape_type> --target <target>
- Replace
<scrape_type>
withuser
,hashtag
, orlocation
. - Replace
<target>
with the specific username, hashtag, or location you want to scrape.
For example, to scrape videos from a user profile:
python scraper.py --type user --target username
- Replace
-
Additional Options:
--output
specifies the directory where the videos will be saved.--limit
sets the maximum number of videos to download.
- Python 3.6 or higher
- Requests
- BeautifulSoup
- Instaloader
- dotenv
To install these dependencies, run:
pip install requests beautifulsoup4 instaloader python-dotenv
Contributions are welcome! If you'd like to contribute, please follow these steps:
- Fork the repository.
- Create a new branch:
git checkout -b feature-branch
- Make your changes and commit them:
git commit -m 'Add new feature'
- Push to the branch:
git push origin feature-branch
- Submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for more details.
For any questions or suggestions, please reach out to the project maintainer at:
- Abdul - GitHub Profile