Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ankandrew/ig-image-scraper
Scrape images given a Instagram hashtag.
https://github.com/ankandrew/ig-image-scraper
hashtag-scraper ig-hashtag-scrapper image-scraper instagram instagram-scraper scraper selenium selenium-python
Last synced: 26 days ago
JSON representation
Scrape images given a Instagram hashtag.
- Host: GitHub
- URL: https://github.com/ankandrew/ig-image-scraper
- Owner: ankandrew
- Created: 2021-07-18T22:39:12.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-07-19T20:51:14.000Z (over 3 years ago)
- Last Synced: 2024-11-09T09:07:19.557Z (3 months ago)
- Topics: hashtag-scraper, ig-hashtag-scrapper, image-scraper, instagram, instagram-scraper, scraper, selenium, selenium-python
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Instagram Image Scraper
Scrap instagram images given a hashtag
### Usage
```python
from ihs import Scraper, Downloaderif __name__ == "__main__":
credentials = {
'username': 'your_username',
'password': 'your_password'
}
urls_path = 'scraped/urls.txt'
Scraper(login=credentials,
max_samples=10,
url_save_path=urls_path,
driver_path='driver/chromedriver.exe').scan(tag='happy')
Downloader(url_file=urls_path,
img_folder='img/').start(wait_time=1.0)
```### Installation
Run:
`pip install -r requirements.txt`
Then download the chrome driver from [here](https://chromedriver.chromium.org/downloads) according to your Chrome version.
When creating `Scraper` object make sure to pass the correct path to the driver.### Disclaimer
This tool is for educational purposes only.