Skip to content

shalvah/oldtweets.today

Repository files navigation

#TwitterThrowback

You know of Facebook's "On This Day" feature? It shows you the posts you made (and a few other things) on this day (for example, February 15) in the past. If you're on Facebook, you can see yours at facebook.com/onthisday.

Yeah, this is that, but for Twitter. You can see the tweets you've made on this day in the past by visiting oldtweets.today.

How this works

This repo contains two different components.

The website

A simple page served via GitHub Pages from the docs/ folder. This is where you enter your Twitter username, and then a request is made to the API to retrieve your old tweets.

The API

The API is a serverless JavaScript function hosted on Google Cloud Functions (Node.js 10). Normally, this would call Twitter's API to request your old tweets, but Twitter's Standard Search API only provides access to tweets made in the past 7 days, so that's pretty useless.

However, you can use the search on twitter.com to fetch tweets by a particular person on a particular date, with little restriction. That's what this API does. It runs the search on Twitter's site, scrapes the results and extracts the necessary data and returns the tweets requested as embeddable HTML.

Want to contribute or play with this locally?

See the contribution and development guides.

License

Do whatever you want.

If you like this...

then you might like some other tools I've built around Twitter and their API:

About

"On This Day" for Twitter #TwitterThrowback

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published