maniac-tech / maniac-tech/Web-Crawling-using-Python

HTMLPARSER error in "usingHtmlParser.py"

Open
#1 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

help wanted
Dominant language
HTML
Stars
0
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Traceback (most recent call last):
File "usingHtmlParser.py", line 17, in
lParser.feed(urllib.urlopen(thisurl).read())
File "E:\Python27\lib\HTMLParser.py", line 108, in feed
self.goahead(0)
File "E:\Python27\lib\HTMLParser.py", line 148, in goahead
k = self.parse_starttag(i)
File "E:\Python27\lib\HTMLParser.py", line 229, in parse_starttag
endpos = self.check_for_whole_start_tag(i)
File "E:\Python27\lib\HTMLParser.py", line 304, in check_for_whole_start_tag
self.error("malformed start tag")
File "E:\Python27\lib\HTMLParser.py", line 115, in error
raise HTMLParseError(message, self.getpos())
HTMLParser.HTMLParseError: malformed start tag, at line 620, column 54

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with usingHtmlParser.py at line 17 and reproduce the HTMLParser failure against the same fetched page. Inspect the input around line 620, column 54, where the parser reports a malformed start tag; done means the parsing failure is resolved or the problematic input is clearly identified.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.