Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

Awesome Lists containing this project

README

        

## Instagram Image Scraper

Scrap instagram images given a hashtag

### Usage

```python
from ihs import Scraper, Downloader

if __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.