Why does Wayback Machine Json API only return empty “archived_snapshots”: {} elements?

拈花ヽ惹草 提交于 2021-01-29 13:13:52

问题


I am trying to use the Wayback Machine Json API to get the links to archived websites. But when I use it as described on their website 1, for instance using this URL:

http://archive.org/wayback/available?url=google.com&timestamp=20100101

In Python:

request = requests.get('http://archive.org/wayback/available?url=google.com&timestamp=20100101') 
print(request.text)

Results in this:

{"timestamp": "20100101", "archived_snapshots": {}, "url": "google.com"}

Am I doing something wrong? Thank you very much for your help!


回答1:


Found a solution. Using

http://web.archive.org/wayback/available?url=google.com&timestamp=20100101

adding the web subdomain works just fine.



来源:https://stackoverflow.com/questions/60995059/why-does-wayback-machine-json-api-only-return-empty-archived-snapshots-ele

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!