Consider randomizing the User-Agent being passed in the base-header
ashaychangwani opened this issue · comments
In my experience, repeated use of the same user agent header has lead to far more non-200 status code responses.
You can use this library called fake_useragent as:
from fake_useragent import UserAgent
user_agent = UserAgent()
HEADER['User-Agent'] = user_agent.random
Just a suggestion!
Thanks for that! I will probably include this - unless you want submit a PR
PR incoming :D
Please do submit to external-dev/user-agent-randomization
From there, I will test and merge to main
I guess you'd have to modify only src/covid-vaccine-slot-booking.py
@ashaychangwani please fork the repo and send PR
@pallupz do I need to fork the repo for a 5 line PR?
@ashaychangwani thats how git works 😕
yupp
link to discord server if anyone's interested in a single place for discussions : https://discord.gg/rCz8VdRB
@pallupz now someone will come and say we should implement tor to get new ip's every now and then. what is your view on this 😕
That would be something. I dont know enough about it to comment authoritatively
link to discord server if anyone's interested in a single place for discussions : https://discord.gg/rCz8VdRB