Skip to content
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

Open
jgsheffer opened this issue Jun 17, 2022 · 6 comments
Open

403 Forbidden #2

jgsheffer opened this issue Jun 17, 2022 · 6 comments

Comments

@jgsheffer
Copy link

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

@eviltypha
Copy link
Owner

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.

@HarnoorSingh79
Copy link

@eviltypha I am facing 403 forbidden error after entering the url? what should i do?

@eviltypha
Copy link
Owner

Hi @HarnoorSingh79, are you able to access the website through your browser? Try using a VPN.

@SirGryphin
Copy link

@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

@Lattaz
Copy link

Lattaz commented Jan 10, 2023

I'm getting the same 403 forbidden error, not even cyberghost vpn is working.

@Demianeen
Copy link

Hi everybody. All the pages on ranobe.net give me
CleanShot 2024-03-13 at 10 08 41@2x

Has it happened to anyone else?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants