lanecodes / netstream Goto Github PK
View Code? Open in Web Editor NEWTrawl Twitter's public stream and record specified network interactions
Trawl Twitter's public stream and record specified network interactions
See gist here https://gist.github.com/ctufts/e38e0588bf6d8f32e99d
This page in tweepy's github docs explains how to filter for both/ either search terms and user IDs.
Note that the follow
argument of Stream.filter()
seems to expect an array of user IDs rather then user handles. Explore use of the get_user
API method to retrieve ID from username
See this SO for idea of having a secrets.py
(although probably naming it something less bait, such as env.py
).
Could also migrate twitter keys into here. Should also think about encrypting keys and passwords with a passphrase (using something like py-bcrypt)
Could also just require user to enter their database password each time the script is run, so it's only ever stored in memory.
At time of writing, streaming likes is considered an enterprise tier feature.
However, it should be possible to work around this with some application logic and periodic use of the GET favourites/list endpont.
See this SO for inspiration.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.