Skip to content

Easily retrieve deleted tweets that have been archived by the wayback machine

Notifications You must be signed in to change notification settings

kulgg/tweetfisher

Repository files navigation

image

TweetFisher

Next.js app that finds deleted tweets that have been archived by the wayback machine

Getting Started · Stack · ToDo · FAQ


Getting started

Prerequisites

Running locally

git clone https://github.com/kulgg/tweetfisher.git
cd tweetfisher
npm install

Before running: Copy .env.example to .env.local

npm run dev

Stack

ToDo

  • Add export functionality
  • Parse quote tweets
  • Adaptive throttling

FAQ

Why is this not hosted somewhere?

Initially, I wanted to perform all requests on the client-side to avoid throttling problems and allow for easy hosting for users. However, I soon realized that this was not possible. Both archive.org and twitter.com do not set the required CORS headers, making it impossible to access response contents from the frontend code, even when using the 'no-cors' mode for requests. Furthermore, the HTTP HEAD requests to twitter.com that check for deleted tweets must imitate search engine headers to function properly, but this cannot be done in frontend requests as the browser adds additional headers.

As a solution, all requests have been wrapped by Next.js API routes. Unfortunately, this makes it difficult to host this app for widespread use due to throttling constraints.