Unshorten the URLs in your Twitter archive
Project description
twitter-archive-unshorten
Twitter's archive download includes shortened t.co
URLs instead of the original URLs that you tweeted. If Twitter ever goes away, the server at t.co
won't be available to respond to requests.
unshorten.py
is a small Python program that will examine all the JavaScript files in the archive download and rewrite the t.co
short URLs to their original full URL form. This means the context for your archived tweets will make a little more sense after Twitter is gone. Maybe you can look up those URLs in the Internet Archive if they are no longer available. This would be impossible if all you had was the short URL.
Run
- Unzip your Twitter archive zip file.
- Download unshorten.py.
- Open a terminal window and run:
python3 unshorten.py /path/to/your/archive
It might take a while, depending on how many tweets you have. Once it's
finished you should be able open your Archive and interact with it without the
t.co
URLs.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for twitter_archive_unshorten-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63c4a636ae0ed7fb135d3a75b5f20354cd75b0cc3a990fed36a89223b71d2c27 |
|
MD5 | 73f3345971845fb30e70b1ab58de26a9 |
|
BLAKE2b-256 | 9c2d7bcace461b6890df924adb46bb6ec61f1174daf8cb595f3bcfe69057ef74 |
Hashes for twitter_archive_unshorten-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e57b3bfeae81fb46bed21f9a624f3bf08ed1956a157a6f85071d61878c466b12 |
|
MD5 | b99a2daf37d9373b6d10069bbf04b69c |
|
BLAKE2b-256 | 79a40f83b60693cc01083ccc4d2fcf1b440ca4c619416759f836b38c8e82f8a0 |