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

Integrate with Wayback machine #147

Open
simonsan opened this issue Oct 29, 2020 · 2 comments
Open

Integrate with Wayback machine #147

simonsan opened this issue Oct 29, 2020 · 2 comments

Comments

@simonsan
Copy link

simonsan commented Oct 29, 2020

I think it could be useful to check back with Wayback machine (web.archive.org) before deleting a broken bookmark completely. It might be even worth to rewrite the bookmark then, if the page is existing there.

@dave669
Copy link

dave669 commented Dec 7, 2020

yes, please. I do this manually with any links that I think are "retired". I also add "(Archive)" at the end of the bookmark text to signify it is not a current link. It would be great if this feature could also optionally append a text string to bookmarks re-written to web.archive.org links.

Repository owner deleted a comment Dec 8, 2021
Repository owner deleted a comment from dave669 Dec 8, 2021
@simonsan
Copy link
Author

simonsan commented Jan 21, 2022

URLs can be tested for a 200 by replacing the initial URL with https://web.archive.org/web/<URL>. The date is not needed, the aforementioned URL directs to the latest snapshot stored. I agree that an addition of (Archive) would be nice.

There is also an API:
https://archive.org/help/wayback_api.php

with an endpoint http://archive.org/wayback/available?url=<URL>

with the following responses:

No archived snapshot:

{"archived_snapshots":{}}

At least one archived snapshot:

{
    "archived_snapshots": {
        "closest": {
            "available": true,
            "url": "http://web.archive.org/web/20130919044612/http://example.com/",
            "timestamp": "20130919044612",
            "status": "200"
        }
    }
}

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

Successfully merging a pull request may close this issue.

3 participants