Giter Club home page Giter Club logo

instagram-crawler's Introduction

Instagram-Crawler

Non API. Crawling post (photo, likes, comments, date ...) by username, hashtags

Installation

  1. Make sure you have Chrome browser installed.
  2. Download chromedriver and put it into driver folder: ./driver/chromedriver
  3. Install requirements pip install -r requirements.txt

Examples:

Results: under the ./data folder

Download the first 10 photos and information from username "instagram"

$ python3 crawl.py -q 'instagram' -n 10

Download the first 7 photos and information(all comments) from hashtags #hello, #hi

$ python3 crawl.py -q '#hello, #hi' --a -n 7
you can enter multiple username or hashtags by separating them with commas

Example of a files data

likes: 
5,326

comments: 
923

caption: 
Art of @kendricklamar by @illestration
Bold, bright and colorful. 

commentMessages: 
tttt: Amazing ๐Ÿ˜‰
this_is_t.rs: my name says it all

dateTime: 
2018-05-30T19:42:03.000Z
photo of post will download in ./data folder

Usage

Usage:
    crawl.py [-q QUERY] [-n NUMBER] [--a] [-h HELP]
    
Options:
    -q QUERY  username, add '#' to search for hashtags, e.g. 'username' or '#hashtag'
                  For multiple query seperate with comma, e.g. 'username1, username2, #hashtag'

    -n NUM    number of returned posts [default: 10000]

    --a       collect all comments
    
    -h HELP   show this help message and exit

Contributing

This is an open source project so feel free to contribute by

instagram-crawler's People

Contributors

hehpollon avatar powern90 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.