Skip to content

Latest commit

 

History

History
56 lines (35 loc) · 1.61 KB

README.md

File metadata and controls

56 lines (35 loc) · 1.61 KB

A Simple Twitter dashboard

A dashboard for any custom query with simple analysis tools

dashboard

the dashboard runs in the local host, it's still a little bit slow, but that's an early version, most probably i will be working on it's performance.

Installation

to use the dashboard follow these steps

  • create a virtualenv and activate it
$python -m venv venv
$source venv/bin/activate
  • install all the requirements
$pip install -r requirements.txt

Now you are ready to go !

  • start the app from app.py
$python app.py

you will find a message ending with the url like so

 * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)

Jump into the link and you will directed to the landing page

landing

you can type your query and press analyse to get the dashboard, it's a little bit slow, but it works :D

Usage tips

  • The max number of tweets are set to 1000 and for only one month back, you can override these option in the twitterdash/scraper.py file.
  • Changing the poolsize in twitterdash/scraper.py will affect the speed of scraping but also the performance of your machine, don't get too far with it.

References

  • Pages design were made possible by Bootstrap studio
  • For Twitter scraping i used twitterscraper package, which is pretty useful !
  • Word cloud is pretty easy using word_cloud package.
  • Sentiment analysis here were made using TextBlob library.