Closed omstaendlig closed 1 year ago
This is such a dumb idea from these websites... But noted, I'll add a feature to change the UA.
Note to self (or to whoever wants to implement it first), do it as it is implemented there: https://github.com/Lookyloo/PyLookyloo/blob/main/pylookyloo/api.py#L59
Some sites block requests made with the default user agent used in Python's requests module.
Hm.com, for instance, responds with a 403. So, even though the file is to be found at hm.com/security.txt, an exception is raised.