Git Product home page Git Product logo

twitter-web-scraper-python's Introduction

Twitter-Web-Scraper-Python

Collect data from Twitter API and store it in CSV. twitterScrapper.py is a python script containing code to collect data from Twitter account the data collected is mentioned below.

Twitter Account details fetched -

Twitter Account Name, Twitter total tweets of account, total followers and following count, Twitter total Page likes, twitter total lists of account, Data Collection time.

Tweet details fetched -

Twitter Tweet URL, Tweet Creation Time, total Tweet likes, if tweet is retweeted or not?, who has retweeted the tweet (retweeted from), total Tweets retweets, Tweet Text, Total Tweets tagged picture count, total tweets tagged video count, total hashtags in the tweet, tweet Hashtag texts, tweets total links in post and 3 separate links in separate cells.

How to Run?

  1. pip install tweepy
  2. Create a twitter developer account and create an application to get access to API and their secret keys.
  3. In the file edit the consumer_key, consumer_secret, access_key, access_secret keys with your application keys.
  4. Change page_id list with list of screen_names i.e. twitter accounts you need to have data for (you can put multiple names as well).
  5. In collect_tweet_data function change the count=50 to number of tweets you want to collect from any account.
  6. Run the script without any runtime arguments.
  7. The CSV (twitterScrapper.csv) will be stored in the path where the script is stored.

twitter-web-scraper-python's People

Contributors

bhagyashreeborate 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.