wabarc / archive.is

A command-line tool and Go package for wayback web pages to archive.today
GNU General Public License v3.0
35 stars 4 forks source link

Cookie not working #21

Closed deltabravozulu closed 1 year ago

deltabravozulu commented 2 years ago
$ export ARCHIVE_COOKIE=cf_clearance=747c8285c60f3297fb1d52e89228f043a56af6bf-1652837033-TKBSOLBK
$ archive.is https://www.google.com
[2022-05-17T15:40:47] [ERROR] exec: "tor": executable file not found in $PATH
https://www.google.com => archive.today is unavailable.
waybackarchiver commented 2 years ago

@deltabravozulu Thank you for your report.

I tried to run archive.is with ARCHIVE_COOKIE and it is still working. However, the cookie item cf_clearance has an expiration date. Please try again with the updated cookie.

Strubbl commented 2 years ago

I can reproduce the issue even with a valid cookie. It is valid until tomorrow.

$ ARCHIVE_COOKIE=cf_clearance=632f6a59d01234123545142064404a6f4677-1653149389-ASDFTGH /home/strubbl/go/bin/archive.is http://google.com
[2022-05-21T18:52:51] [ERROR] exec: "tor": executable file not found in $PATH
http://google.com => archive.today is unavailable.
Strubbl commented 2 years ago

I changed the scheme to https in line https://github.com/wabarc/archive.is/blob/main/is.go#L40= and it works now.

waybackarchiver commented 2 years ago

@Strubbl Thank you for testing. The host scheme has been changed at 10b3531

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 120 days with no activity. Remove stale label or comment or this will be closed in 5 days