Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: check with Internet Archive for media that can't be downloaded #153

Open
cooljeanius opened this issue Dec 22, 2022 · 3 comments

Comments

@cooljeanius
Copy link

Some media just isn't going to be on Twitter anymore, due to getting deleted or whatever, so trying to fetch it again with a longer sleep time isn't going to help at all. Instead, I think a better solution might be to check with the Internet Archive to see if they already have the missing media? All that ought to be necessary would be to prepend http://web.archive.org/ to the URL, and then if it's got a copy, it should find it...

@cooljeanius
Copy link
Author

cooljeanius commented Sep 26, 2023

see also tweetback/tweetback#35 and tweetback/tweetback#69

@halkeye
Copy link

halkeye commented Mar 26, 2024

archive.org's api is super simple

curl 'https://archive.org/wayback/available?url=https://pbs.twimg.com/media/AfmQuh2CEAELssj.jpg'
{"url": "https://pbs.twimg.com/media/AfmQuh2CEAELssj.jpg", "archived_snapshots": {"closest": {"status": "200", "available": true, "url": "http://web.archive.org/web/20230802080432/https://pbs.twimg.com/media/AfmQuh2CEAELssj.jpg", "timestamp": "20230802080432"}}}

I'm not sure how it affects tweetback as thats javascript and this is python

@cooljeanius
Copy link
Author

archive.org's api is super simple

curl 'https://archive.org/wayback/available?url=https://pbs.twimg.com/media/AfmQuh2CEAELssj.jpg'
{"url": "https://pbs.twimg.com/media/AfmQuh2CEAELssj.jpg", "archived_snapshots": {"closest": {"status": "200", "available": true, "url": "http://web.archive.org/web/20230802080432/https://pbs.twimg.com/media/AfmQuh2CEAELssj.jpg", "timestamp": "20230802080432"}}}

I'm not sure how it affects tweetback as thats javascript and this is python

I mean, curl ought to be callable from both, right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants