Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/felipetodev/insta-scrape
IG scraper in 130 LOC 📷✨
https://github.com/felipetodev/insta-scrape
instagram selenium
Last synced: about 11 hours ago
JSON representation
IG scraper in 130 LOC 📷✨
- Host: GitHub
- URL: https://github.com/felipetodev/insta-scrape
- Owner: felipetodev
- Created: 2024-06-23T03:01:56.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-06-25T01:21:20.000Z (5 months ago)
- Last Synced: 2024-06-25T05:56:02.815Z (5 months ago)
- Topics: instagram, selenium
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Instagram Image Scraper in 130 LOC
> An open source Instagram scraper
## Running locally
1. Clone the repo, rename `.example.env` to `.env`, and replace your IG username and password
2. Download [ChromeDriver](https://googlechromelabs.github.io/chrome-for-testing/#stable) and add it to your PATH
3. Run `pip install -r requirements.txt` to install dependencies
4. Run `python main.py` to run the scraper## How it works
1. The scraper logs into your Instagram account
2. It navigates to the profile page of the user you want to scrape
3. Get the first 12 images and download them to a folder called `assets`
4. Each image has a unique ID, which can be used to navigate to the post page
4. Finally, create a `data.json` file with info about the instagram account scraped