Giter Club home page Giter Club logo

toot's Introduction

Toot

If you're like me and use Twitter to keep up with researchers, blog posts and members of the Data Science & ML community in general, you might find yourself liking tweets to read later or for when you need a post when you're working on a relevant problem.

Well then you'll also know, the number of likes start to grow quickly and searching/filtering through all the likes to find the relevant likes you need, when you need them, is a pain. Hence, the use case for this quick app. Due to the simplicity of this app, I decided to build it with quickly with Streamlit.

image

Features

  • Generate topics from tweets
  • Filter based on tweet topic
  • Regex search
  • Click directly on links to blogs, links, pdfs, etc.

Usage

You will need a Twitter API consumer key as well as Twitter App access token. You can get all of those here: https://developer.twitter.com/en/apply-for-access.html

To edit the number of times between api requests to twitter, change the REQUEST_TIME_LIMIT variable (default is 60min).

DockerHub

You can pull a stock image from Docker Hub by running the following:

docker pull bigsidhu/toot

docker run -d --name `container_name` -p 8501:8501 \
-e CONSUMER_KEY=`your_twitter_consumer_key` \
-e CONSUMER_SECRET=`your_twitter_consumer_secret` \
-e ACCESS_TOKEN=`your_twitter_access_token` \
-e ACCESS_TOKEN_SECRET=`your_access_token_secret` \
-e REQUEST_TIME_LIMIT="30" bigsidhu/toot

Docker

You can start it as a docker instance by running the following:

docker build -t toot .

docker run -d --name `container_name` -p 8501:8501 \
-e CONSUMER_KEY=`your_twitter_consumer_key` \
-e CONSUMER_SECRET=`your_twitter_consumer_secret` \
-e ACCESS_TOKEN=`your_twitter_access_token` \
-e ACCESS_TOKEN_SECRET=`your_access_token_secret` \
-e REQUEST_TIME_LIMIT="30" toot

Locally

Add your twitter api keys in the source code or as environment variables and running:

pip install -r requirements.txt
streamlit run toot/toot.py

To background the process nohup streamlit run toot/toot.py & or a schtask on Windows.

Then access it by going to http://localhost:8501.

Coming Soon

I'll update this repo periodically and will add the following features:

  • Reduced loading time
  • Topic Filtering
  • Add account of tweet that is favourited
  • Image on Dockerhub

toot's People

Contributors

ashton-sidhu avatar

Watchers

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