Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Wayback Tweets

PyPI docs Streamlit App

Retrieves archived tweets CDX data from the Wayback Machine, performs necessary parsing (see Field Options), and saves the data in HTML (for easy viewing of the tweets using the iframe tag), CSV, and JSON formats.

Installation

pip install waybacktweets

Quickstart

Using Wayback Tweets as a standalone command line tool

waybacktweets [OPTIONS] USERNAME

waybacktweets --from 20150101 --to 20191231 --limit 250 jack

Using Wayback Tweets as a Web App

Open the application, a prototype written in Python with the Streamlit framework and hosted on Streamlit Cloud.

Using Wayback Tweets as a Python Module

from waybacktweets import WaybackTweets, TweetsParser, TweetsExporter

USERNAME = "jack"

api = WaybackTweets(USERNAME)
archived_tweets = api.get()

if archived_tweets:
    field_options = [
        "archived_timestamp",
        "original_tweet_url",
        "archived_tweet_url",
        "archived_statuscode",
    ]

    parser = TweetsParser(archived_tweets, USERNAME, field_options)
    parsed_tweets = parser.parse()

    exporter = TweetsExporter(parsed_tweets, USERNAME, field_options)
    exporter.save_to_csv()

Documentation

Acknowledgements

  • Tristan Lee (Bellingcat's Data Scientist) for the idea of the application.
  • Jessica Smith (Snowflake's Marketing Specialist) and Streamlit/Snowflake teams for the additional server resources on Streamlit Cloud.
  • OSINT Community for recommending the application.

Metadata

Release files for waybacktweets 1.0a4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for waybacktweets 1.0a4
File Size Uploaded
waybacktweets-1.0a4.tar.gz 26.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for waybacktweets 1.0a4
File Interpreter ABI Platform
waybacktweets-1.0a4-py3-none-any.whl Python 3 none any Details

Total release size: 57.0 kB

Release files / waybacktweets-1.0a4.tar.gz

Download URL waybacktweets-1.0a4.tar.gz
Size 26.7 kB
Tags Source
SHA-256 checksum
How to use checksums
0c337fc62d1bac52e6d95185bb4e442d437012592941c6282ba666932e1389c3
BLAKE2b-256 checksum
How to use checksums
7a65e0163138e62ea0573cbf4b5383b6e46df574e14be23159d8a2bac8d0760a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.11.5 Linux/5.15.153.1-microsoft-standard-WSL2

Release files / waybacktweets-1.0a4-py3-none-any.whl

Download URL waybacktweets-1.0a4-py3-none-any.whl
Size 30.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b0988bc478cb57f13fade54df4b8e74ee3760d51ddd6e8df533f567ad0d3a301
BLAKE2b-256 checksum
How to use checksums
f864d76c9a4e8475fa6c6e6fc7120aab4de2d1c3c2c4f8988b570a96dd2d9fb5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.11.5 Linux/5.15.153.1-microsoft-standard-WSL2
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page