Save-to-the-Wayback-Machine icon indicating copy to clipboard operation
Save-to-the-Wayback-Machine copied to clipboard

Allow sign-in with archive.org to optionally save page to personal archive

Open jasikpark opened this issue 6 years ago • 3 comments

jasikpark avatar Apr 17 '19 01:04 jasikpark

I've looked into this and it looks like the Wayback Machine has two ways to save pages to a user's personal archive.

1 - Post request to web.archive.org/save/ with the following form data:

url=https://example.com/ (encoded)
wm-save-mywebarchive=on
target_username=
target_password=

This request will archive a page and save it to the user's personal archive. Would require major code update to implement.

2 - Post request to web.archive.org/__wb/web-archive/ with following JSON payload:

{
  "url": "https://example.com/",
  "snapshot": "20190423140825",
  "tags": [
  ]
}

This request saves a page to the user's personal archive. A JSON response is returned reporting the status of the request. Example:

{
  "task_id": null,
  "success": true
}

VerifiedJoseph avatar Apr 23 '19 14:04 VerifiedJoseph

Can I ask if there is something blocking this? I see you implemented it in #72 but closed it?

tonglil avatar Jun 11 '20 20:06 tonglil

Is there an api to verify that you are signed in to archive.org? So that you can debug when the request is unsuccessful because access to the personal archive is not available versus the saving of the page is unsuccessful?

jasikpark avatar Jan 11 '21 22:01 jasikpark