It says i don’t have the permission to access the url. Any suggestions?
When you’ve got text output, please copy/paste it as text inline in your
message, between triple backticks, eg:
```
output
goes here
```
The same with programme code.
The above screenshot shot shows a 403 error response, which says that
the web server has refused access to the URL you’ve used. Usually that
means that you need some kind of authentication with the request.
By Coverdaisy via Discussions on Python.org at 14Sep2022 09:45:
Thx. Could you show me some ways to solve this?
Not easily; this kind of thing is service specific. There are standard
ways to provide authentication, but which of them applies depends on the
service.
Note that buried in the response message is a suggestion that the
rejection was based on a blacklist (“denied by UA ACL = blacklist”),
which may mean that your IP address is forbidden from accessing this
URL. Not amount of authentication will help you there, if that preceeds
other checks.
However, you can test the basics from a command line. I just tried it
from here (in Australia) with your URL, and did not get a 403 error:
I use the debug console in my browser to see the network traffic and capture the set of requests and responses when I manually login and access a resource.
Then I turn that set of requests into code.
For example there may be a login form.
I would findout what the login form fields are and POST in the right format the fields with the values filled in in my python code.
Take the cookie, its usually a cookie, that comes back with the response and add that cookie to all later requests.