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

xml.etree.ElementTree.ParseError: mismatched tag: line 10, column 10 #15

Open
algouye2802 opened this issue Jul 10, 2019 · 3 comments
Open

Comments

@algouye2802
Copy link

Hi there,

Since yesterday, the script does not work no more and generate this error.
It's look like that the json's structure might have changed:

Traceback (most recent call last):
  File "sitereview.py", line 61, in <module>
    main(args.url)
  File "sitereview.py", line 43, in main
    s.check_response(response)
  File "sitereview.py", line 28, in check_response
    root = ET.fromstring(self.req.content)
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1311, in XML
    parser.feed(text)
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1653, in feed
    self._raiseerror(v)
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1517, in _raiseerror
    raise err
xml.etree.ElementTree.ParseError: mismatched tag: line 10, column 10
@weissrob
Copy link

In order to prevent automation from using their website for categorization, it looks like they added a javascript redirect. Since most URL/URI modules and other tools like Postman will ignore the javascript, it never gets redirected. Using a browser, it follows the redirect fine, which allows it to reach the actual page and submit a website search for categorization.

@d78ui98
Copy link

d78ui98 commented Aug 21, 2019

In order to prevent automation from using their website for categorization, it looks like they added a javascript redirect

Is it possible to bypass this redirect?

@weissrob
Copy link

weissrob commented Aug 21, 2019 via email

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

3 participants