Skip to content

Fast and simple Instagram hashtag and location scraper

License

Notifications You must be signed in to change notification settings

ScriptSmith/instaphyte

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Instaphyte

Build Status Code Quality Code Coverage License Speed

Fast and simple Instagram hashtag scraper.

For a more powerful scraper, try Instamancer

Install

From this repository

git clone https://github.com/scriptsmith/instaphyte.git
cd instaphyte
pip3 install -e .

From PIP

pip install instaphyte

Usage

Command Line

$ instaphyte
usage: instaphyte [-h] [--count COUNT] [--download] [--silent]
                  [--waitDownload] [--filename FILENAME]
                  [--filetype {csv,json,both}] [--downdir DOWNDIR]
                  {hashtag,location} id

Scrape Instagram hashtag and location feeds

positional arguments:
  {hashtag,location}    The type of feed to scrape posts from
  id                    The id of the feed to scrape posts from

optional arguments:
  -h, --help            show this help message and exit
  --count COUNT, -c COUNT
                        Number for posts to download. 0 to download all
  --download, -d        Save images from posts
  --silent              Disable progress output
  --waitDownload, -w    Only download media once scraping is finished
  --filename FILENAME, --file FILENAME, -f FILENAME
                        Name of the output file
  --filetype {csv,json,both}, --type {csv,json,both}, -t {csv,json,both}
                        Type of output file
  --downdir DOWNDIR     Directory to save media

Example:

instaphyte hashtag selfie --count=1000 -d

Module

Example:

from instaphyte import Instagram

api = Instagram()

# Get 1000 posts from #selfie
for post in api.hashtag("selfie", 1000):
    print(post)

# Get all posts tagged as being in London
for post in api.location("213385402"):
    print(post)

About

Fast and simple Instagram hashtag and location scraper

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages