pgaref / HTTP_Request_Randomizer

Proxying Python Requests
http://pgaref.com/blog/python-proxy/
MIT License
148 stars 60 forks source link

doen't work for facebook urls #71

Open enaserianhanzaei opened 3 years ago

enaserianhanzaei commented 3 years ago

Thanks for the very useful package, however, it doesn't work for Facebook urls (the public groups), such as

https://www.facebook.com/groups/1166154663436469/permalink/4206825836035988

I get this error : check_hostname requires server_hostname

pgaref commented 3 years ago

Seems like an issue with urllib: https://stackoverflow.com/questions/66642705/why-requests-raise-this-exception-check-hostname-requires-server-hostname

Can you try urllib3==1.25.8 ?

enaserianhanzaei commented 3 years ago

@pgaref I fixed it the other day, and forgot to remove the issue. But thanks, and yes, that's the solution

pgaref commented 3 years ago

Thats great @enaserianhanzaei thanks for confirming! Happy to merge in your FIX if you want to contribute to the project :)