codelucas / codelucas/newspaper
`parse` hangs on some files
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 15.2k
- Forks
- 2.1k
- PR merge metrics
- No merged PRs in 30d
Description
Hi, I reported the issue on goose3 . I was hoping Newspaper would not have this problem, but the same issue also occurs with Newspaper. You can replicate the issue by the following lines:
from newspaper import Article
article = Article('https://gist.githubusercontent.com/ma-ji/2dd9689a01c48bf7323b89d4e6b927d5/raw/21f680df041c9816d9d80faa4af599aa90df90be/raw_html.html')
article.download()
article.parse()
System info:
OS Ubuntu 18.04.5 LTS
Python 3.8.11
IPython 7.26.0
newspaper 0.2.8
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running the provided Python reproduction against the linked HTML file and observe where Article.parse() stops responding. Trace the parse path from Article.parse() to identify the blocking behavior; done means the example completes parsing without hanging.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100