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

Medium: Issues with Cloudfare and similar #1

Open
mariomeyrelles opened this issue Feb 5, 2022 · 1 comment
Open

Medium: Issues with Cloudfare and similar #1

mariomeyrelles opened this issue Feb 5, 2022 · 1 comment

Comments

@mariomeyrelles
Copy link

Hello Maxime,

Firstly I would like to send you many thanks for sharing this code. I was able to successfully publish a blog post on medium and dev.to!

In order to make this work, I had to change the user-agent of the requests to a non-browser user agent because for Medium, in many calls to their API I received a weird answer that after a lot of debugging it seemed to be Cloudfare page. I fixed this by manually changing the user agent to something like "Postman 7.29.1" in order to make it work for API calls.

I am not sure what is the best approach here - should it be configurable? Should it be hardcoded for something that is a non-browser call?

Kind Regards,
Mário

@maximegel
Copy link
Owner

Hi Mario,

Thanks for your investigation.

I think the best would be to make it configurable as you suggest and maybe document it in a troubleshooting section or the readme.

If you are willing to make a PR that would be great 🙂

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

No branches or pull requests

2 participants