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

Code can not handle Javascript #4

Open
watchingdogs opened this issue Jul 18, 2023 · 0 comments
Open

Code can not handle Javascript #4

watchingdogs opened this issue Jul 18, 2023 · 0 comments

Comments

@watchingdogs
Copy link

Got this error while running the script.

[7] Processing https://mysite.comjavascript:void(0);
Traceback (most recent call last):
  File "/home/user/.local/lib/python3.11/site-packages/requests/models.py", line 382, in prepare_url
    scheme, auth, host, port, path, query, fragment = parse_url(url)
                                                      ^^^^^^^^^^^^^^
  File "/home/user/.local/lib/python3.11/site-packages/urllib3/util/url.py", line 394, in parse_url
    return six.raise_from(LocationParseError(source_url), None)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<string>", line 3, in raise_from
urllib3.exceptions.LocationParseError: Failed to parse: https://mysite.comjavascript:void(0);

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/user/Downloads/Email-Scraper/email-scraper.py", line 30, in <module>
    response = requests.get(url)
               ^^^^^^^^^^^^^^^^^
  File "/home/user/.local/lib/python3.11/site-packages/requests/api.py", line 75, in get
    return request('get', url, params=params, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/.local/lib/python3.11/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/.local/lib/python3.11/site-packages/requests/sessions.py", line 528, in request
    prep = self.prepare_request(req)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/.local/lib/python3.11/site-packages/requests/sessions.py", line 456, in prepare_request
    p.prepare(
  File "/home/user/.local/lib/python3.11/site-packages/requests/models.py", line 316, in prepare
    self.prepare_url(url, params)
  File "/home/user/.local/lib/python3.11/site-packages/requests/models.py", line 384, in prepare_url
    raise InvalidURL(*e.args)
requests.exceptions.InvalidURL: Failed to parse: https://mysite.comjavascript:void(0);
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

1 participant