davidbauer / famous-first-tweets Goto Github PK
View Code? Open in Web Editor NEWFind the very first tweet of a given Twitter user.
Home Page: http://labs.davidbauer.ch/famous-first-tweets
Find the very first tweet of a given Twitter user.
Home Page: http://labs.davidbauer.ch/famous-first-tweets
Currently, it takes just a bit too long.
First tweets don't change (with the exception of deletions), so it would make sense to cache every request that has once been made.
This would solve two problems at once:
URL structure once tweet is delivered should be like this (or similar): /famous-first-tweets#username
what's in the script right now is this: if (false)
.
real condition needs to be added.
the error we need to catch is:
{"errors":[{"message":"Sorry, that page does not exist","code":34}]}
Clicking on one of them should start the script with their respective username as input.
If API rate limit is exceeded, we currently display the same error message like when the username doesn't exist.
Need to differentiate those two errors to inform the user to try later again when rate limit exceeded.
check with username input: sdfiosdifbsdfbdsjfbsdjhfbsfhjbsdjfhbs
expected result: error msg "This doesn't seem to be a username. Too long."
actual result: error msg + tweet from user @undefined
Not sure how to get it back to work with V 1.1.
shouldn't be that difficult, using an if-statement with the boolean retweeted
in the tweet api.
as user_timeline only returns 200 tweets at a time, a loop is needed to go all the way back to the first tweet.
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.