All Projects → shreybatra → Twitter-Stream-API-Dataset

shreybatra / Twitter-Stream-API-Dataset

Licence: GPL-3.0 license
Twitter Dynamic Dataset Api. Create any dataset YOU want.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Twitter-Stream-API-Dataset

TinyFlowerBeds
Educational bot that posts a tiny flower bed on Twitter every few hours. Check it out if you're new to Python and open source!
Stars: ✭ 12 (-40%)
Mutual labels:  twitter-api, tweepy-api
twitter-crypto-bot
This is a Twitter bot that tweets about cryptocurrencies prices every certain amount of minutes
Stars: ✭ 21 (+5%)
Mutual labels:  twitter-api
twitter-stream
A Go wrapper for Twitter's V2 Filtered Stream API
Stars: ✭ 26 (+30%)
Mutual labels:  twitter-api
github-readme-twitter
Add Twitter to your github readme
Stars: ✭ 73 (+265%)
Mutual labels:  twitter-api
Stranger Things Wall
A wall of addressable LEDs inspired by the Netflix series Stranger Things that displays messages from Twitter.
Stars: ✭ 22 (+10%)
Mutual labels:  twitter-api
twspace-crawler
Script to monitor & download Twitter Spaces 24/7
Stars: ✭ 78 (+290%)
Mutual labels:  twitter-api
Broadcast
🗣 A write-only Twitter client
Stars: ✭ 36 (+80%)
Mutual labels:  twitter-api
godsend
A simple and eloquent workflow for streaming messages to micro-services.
Stars: ✭ 15 (-25%)
Mutual labels:  streaming-data
spotatweet
A Spotify & Twitter API mashup showing what people are listening to now. Written in Node.js.
Stars: ✭ 26 (+30%)
Mutual labels:  twitter-api
eleventy-plugin-embed-tweet
A plugin for embedding tweets on the server side during build time
Stars: ✭ 24 (+20%)
Mutual labels:  twitter-api
twitter-d
TypeScript types for Twitter API objects
Stars: ✭ 54 (+170%)
Mutual labels:  twitter-api
discord-twitter-webhooks
🤖 Stream tweets to Discord
Stars: ✭ 47 (+135%)
Mutual labels:  twitter-api
TwitterClone
TwitterClient app represents a real world twitter client app: it provides a fairly complex set of functionalities, it's a suitable showcase for all the advantages that architecture components bring, has all features that would make it a modular, scalable, testable and maintainable app.
Stars: ✭ 26 (+30%)
Mutual labels:  twitter-api
trumptweets
Download data on all of Donald Trump's (@RealDonaldTrump) tweets
Stars: ✭ 39 (+95%)
Mutual labels:  twitter-api
cinje
A Pythonic and ultra fast template engine DSL.
Stars: ✭ 26 (+30%)
Mutual labels:  streaming-data
ml-flashcards
Extracting data from Twitter for #machinelearningflashcards 🤖
Stars: ✭ 35 (+75%)
Mutual labels:  twitter-api
trending-twitter
Simple dashboard for getting currently trending hashtags and topics on Twitter
Stars: ✭ 23 (+15%)
Mutual labels:  twitter-api
go-t
A blazing-fast, simple and easy to use command-line client for Twitter written in Go. 🚀📨
Stars: ✭ 70 (+250%)
Mutual labels:  twitter-api
SparkTwitterAnalysis
An Apache Spark standalone application using the Spark API in Scala. The application uses Simple Build Tool(SBT) for building the project.
Stars: ✭ 29 (+45%)
Mutual labels:  twitter-api
awesome-bigdata
A curated list of awesome big data frameworks, ressources and other awesomeness.
Stars: ✭ 11,093 (+55365%)
Mutual labels:  streaming-data

Twitter-Stream-API-Dataset

HitCount

This Script will help user to stream/search/download tweets based on different tracks, search parameters, etc.

This script is developed in Python 3.6 using the following packages :

  1. Flask
  2. Tweepy
  3. PyMongo
  4. json
  5. time
  6. datetime
  7. io

You will also need a running MongoDB client on your machine

To use this script -

  1. Clone this repository.
  2. Download all the packages required.
  3. Run the script streamtest.py in command prompt.
  4. Visit http://127.0.0.1:5000/ for the root access to the script.
  5. Use different API endpoints as mentioned below for different works.

API 1 (Trigger Tweets)

endpoint - /triggertweets?<arguments>

This endpoint will trigger a thread to stream all the tweets on a certain keyword present in the tweet text and store them in a database.

Arguments :
  1. keyword - NECESSARY argument needed for this API. This is the keyword which would be searched in the tweet stream. example - /triggertweets?keyword=Modi
  2. max_tweets - OPTIONAL argument to specify after how many tweets to stop the streaming. If not provided, default value 10 is taken. example - /triggertweets?keyword=Modi&max_tweets=50

API 2 (GET RESULTS ON WEBPAGE)

endpoint - /gettweets?<arguments>

This endpoint can be used to search and analyse different tweets already present in the database or after adding the tweets using the 1st API. This endpoint will provide results by using pagination as the number of tweets could be really large. Using this API, we can - ..* Search for all tweets for a given keyword. ..* Search tweet texts to find a substring in a partical track. ..* Can apply filters such as sort , slice, dice, range filters, etc.

Arguments:
  1. keyword - NECESSARY argument needed to search tweets based on that specific track. Will provide a Bad Request 400 if not provided.
  2. limit - To limit the number of tweets displayed upfront. Can be varied. Default is 10.
  3. offset - To tell which index tweet to start displaying with.
  4. name - Search tweets by user's Display Name.
  5. screen_name - Search tweets by user's Screen Name.
  6. retweet_count - Search tweets with given minimum retweet count.
  7. reply_count - Search tweets with given minimum reply count.
  8. favorite_count - Search tweets with given minimum favorite count.
  9. lang - Search tweets with given language (eg - en,hi,etc.)
  10. sort_by - Sorts the output by the given field (id,created_at,text). Default is id.
  11. order - order the sorted tweets in ASC(ending) or DESC(ending) order. Default is ASC.
  12. date_start - Search tweets only after starting date (converted to timestamp for computation).
  13. date_end - Search tweets only before ending date (converted to timestamp for computation).
  14. search - Tells which string parameter to search in the tweets for a given substring.
  15. search_type - Tells how to search the substring in the given parameter (starts,ends,contains). NECESSARY when search is not null.
  16. search_value - Tells which substring to find in the given parameter. NECESSARY when search is not null.

API 3 (Download Results as a CSV)

endpoint - /download/gettweets?<arguments>

This endpoint works exactly like API 2 but instead of having the results displayed on the webpage, it downloads a CSV file containing the results. All the arguments and formats remain same as API 2.

Project Developed As Assignment for INNOVACCER. No rights have been reserved. In order to change/modify any content please contact me first. Clone and have fun using this script.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].