GithubHelp home page GithubHelp logo

automating-webscraping-instagram's Introduction

Webscraping-Instagram

It webscrapes data from instagram.

This is python program that automates data collection by web-scraping from Instagram by logging in and generating csv files and making plots by analysing data.

This program needs to be updated as there is update in site of Instagram.

You should have google chrome installed on system. Do not switch tab while running the program. The windows will automatically close once operations are completed.

Basic work flow of program

  1. searches a keyword in instagram(example - "gaming")
  2. extract username from search result
  3. visits each username
  4. extracts number of followers, last 10 post, their captions, likes and date of upload
  5. prepare csv and generates plot.

It generates the following results:

  1. Generate first csv with following columns : [username, number of followers, likes on first 10 posts, captions on each of the post, number of post done in 3 days, avg likes on last 10 post, avg likes to followers ratio].
  2. Generate 2nd csv with frequency of words used in all captions(stopwords have been removed).
  3. Generate 3rd csv with hashtags used in all captions from all usernames.
  4. Generates plots for
    1. Top 5 usernames by number of followers
    2. Number of post done in last 3 days
    3. Avg likes on last 10 post
    4. Avg likes to followers Ratio
    5. Pie chart 5 most used hashtags

Libraries used

  1. pandas
  2. numpy
  3. matplotlib
  4. seaborn
  5. nltk
  6. selenium
  7. datetime
  8. re
  9. time 10.operator 11.collections

If you encounter any error while running the program, rerun it.

automating-webscraping-instagram's People

Contributors

vinay-bajaj-1 avatar

Stargazers

Arjun avatar  avatar

Watchers

 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.