Skip to content

Issue when querying #3

Description

Hi,

I am getting the following error. Could you please help.

[training@localhost amazonapi-python]$ python main.py 9380349300
/usr/lib/python2.6/site-packages/beautifulsoup4-4.3.2-py2.6.egg/bs4/builder/_htmlparser.py:163: RuntimeWarning: Python's built-in HTMLParser cannot parse the given document. This is not a bug in Beautiful Soup. The best solution is to install an external parser (lxml or html5lib), and use Beautiful Soup with that parser. See http://www.crummy.com/software/BeautifulSoup/bs4/doc/#installing-a-parser for help.
Traceback (most recent call last):
File "main.py", line 15, in
main(sys.argv[1:])
File "main.py", line 8, in main
if p.request() == True:
File "/home/training/data_science_tutorials/amazonapi-python/amazonapi.py", line 33, in request
soup = BeautifulSoup(r.text,'html.parser')#special parser as the default one fails
File "build/bdist.linux-i686/egg/bs4/init.py", line 196, in init
File "build/bdist.linux-i686/egg/bs4/init.py", line 210, in _feed
File "build/bdist.linux-i686/egg/bs4/builder/_htmlparser.py", line 164, in feed
HTMLParser.HTMLParseError: malformed start tag, at line 3797, column 35
[training@localhost amazonapi-python]$

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions