Code Monkey home page Code Monkey logo

instagram-crawler's Introduction

Instagram Crawler & Sorter

Install

Crawler

  1. Make sure you have Chrome browser installed.
  2. Download Chromedriver and put it in current folder.
  3. Install Selenium: pip3 install -r requirements.txt.

For linux,

  1. wget https://chromedriver.storage.googleapis.com/2.37/chromedriver_linux64.zip
  2. unzip chromedriver_linux64.zip
  3. apt-get install chromium-browser

Sorter

  1. Make sure you have Google Maps Platform API Key in the directory.

Usage

Crawler

  1. Make sure variable PATH is properly assigned in place_crawler.py.
  2. Enable or disable headless in chrome option.
  3. Run by python3 place_crawler.py {number of posts} {number of threads} {hashtag} ex: python3 place_crawler.py 1000 10
  4. JSON formatted document(including location, link, timestamp,captions, hashtags respectively) will be created.

Sorter

  1. Make sure to use same hashtag that used in the Crawler.
  2. place_{hashtag}_posts.json should be in the directory.
  3. Run by python3 place_sorter.py {number of threads} {hashtag}
  4. Groupped places will be created in json file.

This crawler might not run properly depending on instagram's update. Argparser will be added soon. ๐Ÿ˜…

Currently sorter doesn't work properly outside of Korea. NLP or ML could be applied for solving address problem. ๐Ÿค”

instagram-crawler's People

Contributors

jeldo avatar

Watchers

James Cloos 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.