Giter Club home page Giter Club logo

instagramscraper's Introduction

Instagram Scraper

instagramScraper is an application written in Python that crawls and scrapes an instagram user's posts and comments.

It fetches a list of desired number of links to posts by any user, the caption for each post, the number of likes and the timestamp of when the post was done. From the posts it saves the comments, username of the commenting person and the timestamp as well.

In order to get access to more posts, it also can log you in into your account. If you use the authentication, the program will cache the user session by default so one doesn't need to create a new session every time.

With the database functionality you can save everything in a database. Here PostgreSQL.

Please use responsibly.

Getting Started

Download the project via git clone and run the following:

pip install -r requirements.txt

Prerequisites

selenium webdriver for Firefox: it requires the geckodriver, which needs to be installed before the below examples can be run. Make sure it’s in your PATH, e. g., place it in /usr/bin or /usr/local/bin.

You can download the executable here: https://github.com/mozilla/geckodriver/releases

psycopg2 for a PostgreSQL driver

Limit recommendatios

Depending on your internet connection it is recommended to use time.sleep() so the drives has enough time to load the contents of the site. The explicit brakes in this code are appropriate for an internet connection of 98 Mbps.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

instagramscraper's People

Contributors

magda-zielinska avatar dependabot[bot] avatar

Watchers

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