GithubHelp home page GithubHelp logo

lgs / oldtweets.today Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shalvah/oldtweets.today

0.0 2.0 0.0 1.23 MB

"On This Day" for Twitter #TwitterThrowback

Home Page: http://oldtweets.today

JavaScript 100.00%

oldtweets.today's Introduction

#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?

See the contribution guide.

License

Do whatever you want with the code.

Support

Hey, I love building cool, open-source stuff like this. You can help support me and keep them running by becoming a patron. Thanks!๐Ÿค—

oldtweets.today's People

Watchers

 avatar  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.