mrusme / reader

reader is for your command line what the “readability” view is for modern browsers: A lightweight tool offering better readability of web pages on the CLI.
https://xn--gckvb8fzb.com/reader-web-page-readability-on-the-cli/
GNU General Public License v3.0
258 stars 9 forks source link

CloudFront error? #2

Closed 097115 closed 2 years ago

097115 commented 2 years ago

When I try reader https://thecyberwire.com/newsletters/daily-briefing/11/27, I get the following error:

    The request could not be satisfied

  --------

  Request blocked. We can't connect to the server for this app or website at this time. There might be too much traffic or a configuration error. Try again later, or contact the app or website owner.

  If you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent this error by reviewing the CloudFront documentation.

  --------

    Generated by cloudfront (CloudFront)
    Request ID: i4xQcPMNFlmTno3nrQbJTLYqCSqGzgRnvJaD4CxQk6_p4OsoJwd8CA==

At the same time, I can open the very same page in w3m without any problems.

mrusme commented 2 years ago

Interesting, will investigate. I assume it has something to do with the user-agent.

097115 commented 2 years ago

I assume it has something to do with the user-agent.

Was thinking exactly this. May be adding an option that would allow us to specify a custom UA could help?

Thanks for your support and interest!

mrusme commented 2 years ago

@097115 fixed the issue. The custom UA options sounds good, added #3 for that.

097115 commented 2 years ago

@mrusme Thanks! Can confirm, it works now :)

(And I checked the --no-images option, too, it's also great, so thank you once again for the support :)