Code Monkey home page Code Monkey logo

instagram_stalker_scraper's Introduction

Instagram_stalker-scrapper-

Fetch data from any public Instagram profile

This program download all the post of instagram profile(PUBLIC) and then shows the bar graph of likes of each post (from older to newer post)

First of all, I want to say that this project helped me learn a lot of things about web scraping and many python libraries (some of them aren't used)

Now what this does is, it downloads all the posts(including videos) of any PUBLIC instagram account and save it in your current working directory. And it also shows the bar graph (likes of each post) from older to newer posts.

When I started this project, I googled a lot of things(don't remember) and visited a lot of blogs. Thanks, everyone :) But there is one blog that tells exactly how to scrape the AJAX part or infinite scrolling of Instagram account.

Infinite Scrolling - https://www.diggernaut.com/blog/how-to-scrape-pages-infinite-scroll-extracting-data-from-instagram/#comment-157

I recommend visiting this blog and google the term that you don't understand from the blog (like XHR and many more).

And one final advice - Go through the requests library if you are programming with python.

Requests Package - http://docs.python-requests.org/en/master/user/quickstart/

And if you are interested in plotting graph in python:

Matplotlib - https://matplotlib.org/tutorials/introductory/sample_plots.html

Good Luck!

Prerequisite:

Python 3

pip(Python Package Index) :

$ sudo apt-get install python3-pip

requests package :

$ sudo pip3 install requests

lxml package :

$ sudo apt-get install libxml2-dev libxslt1-dev python-dev

$ pip3 install lxml

matplotlib package :

$ sudo pip3 install matplotlib

wget package :

$ sudo pip3 install wget

How to Run:

Run driver.py

instagram_stalker_scraper's People

Contributors

gautam1212 avatar sachin-bisht avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

instagram_stalker_scraper's Issues

thanks bro~

thanks so much again!

but I wonder how did u find the url of '/?__a=1' ?

and what about the query_hash in the <head><link rel="preload"..., in ur code it's 2nd queryId but it seems to be 3rd queryId now. How do u find it?!!

Readme bugs

Commands in readme are not updated.
Importing json :
pip install simplejson
Importing matlpotlib:
pip install -U matplotlib

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.