-
Notifications
You must be signed in to change notification settings - Fork 3
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
403 Forbidden #2
Comments
I haven't faced this issue yet, but anyways I've added a workaround by extracting cookies and using them in the code. Do test it out and let me know. |
@eviltypha I am facing 403 forbidden error after entering the url? what should i do? |
Hi @HarnoorSingh79, are you able to access the website through your browser? Try using a VPN. |
@eviltypha still getting this error, I can load site fine in web browser. $ python main.py
Enter URL : https://ranobes.net/novels1/450143-the-daily-life-of-the-immortal-king-v33632.html
Traceback (most recent call last):
File "C:\Users\User\Desktop\Github\ranobes-scraper-evil\main.py", line 28, in <module>
webpage = urlopen(req).read()
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 216, in urlopen
return opener.open(url, data, timeout)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 525, in open
response = meth(req, response)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 634, in http_response
response = self.parent.error(
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 563, in error
return self._call_chain(*args)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 496, in _call_chain
result = func(*args)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 643, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 403: Forbidden |
I'm getting the same 403 forbidden error, not even cyberghost vpn is working. |
I appear to be getting a 403 forbidden error after entering the url.
I was able to get it to work by manually pulling the cookie out of my browser session and adding it to the header for the requests
The text was updated successfully, but these errors were encountered: