go-shiori / obelisk

Go package and CLI tool for saving web page as single HTML file
MIT License
249 stars 18 forks source link

--load-cookies doesn't appear to do anything #8

Closed God-damnit-all closed 1 year ago

God-damnit-all commented 3 years ago

A site I'm trying to back up has a prompt that prevents you from seeing the actual page until you accept the terms. I saved a netscape cookie file with the chrome extension 'Export cookies.txt' and tried both obelisk -c cookies.txt <url> and obelisk <url> -c cookies.txt, and well, it didn't work. Using --verbose doesn't even mention using any cookies.

github-actions[bot] commented 2 years 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

github-actions[bot] commented 2 years 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

God-damnit-all commented 2 years ago

Still an issue.

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

God-damnit-all commented 1 year ago

Still an issue.

waybackarchiver commented 1 year ago

@ImportTaste Thank you for you reporting!

Could you please file a sample of masked cookies to help us in troubleshooting?

God-damnit-all commented 1 year ago

@ImportTaste Thank you for you reporting!

Could you please file a sample of masked cookies to help us in troubleshooting?

Using this cookies.txt file:


curl --cookie cookies.txt https://httpbin.org/cookies

returns

{
  "cookies": {
    "foo": "bar"
  }
}

obelisk -c cookies.txt -o httpbincookies.json https://httpbin.org/cookies

creates a file named httpbincookies.json that contains:

{
  "cookies": {}
}
waybackarchiver commented 1 year ago

@ImportTaste Thanks sharing! It shoud be fixed at https://github.com/go-shiori/obelisk/pull/43/commits/a26ce5dae2e2a7ce747f9c302c9aa8d8d069874f.