Can't detect text in <strong> tags
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
Research direction
Start with the Article.download() and Article.parse() entry points shown in the report, then trace how the downloaded HTML is converted into article.text. Reproduce the example URL and verify that text inside tags is retained with appropriate spacing, while the surrounding article text remains intact.
Written by the indexing model from the issue text.
Description
Hi,
I'm having problems parsing news from a site, here is an example: https://www.am.com.mx/2018/05/14/mexico/detienen-a-tres-integrantes-de-grupo-delictivo-y-liberan-a-secuestrado-470894
The crawler just ignores the text between strong tags and continues with the rest.
Here's some proof code:
>>> article = Article('https://www.am.com.mx/2018/05/14/mexico/detienen-a-tres-integrantes-de-grupo-delictivo-y-liberan-a-secuestrado-470894')
>>> article.download()
>>> article.html
'... <br>Elementos de la<strong> PGR, en coordinación con la Marina Armada de México,</strong> detuvieron a tres integrantes del <strong>cártel de Jalisco Nueva Generación</strong> ...'
>>> article.parse()
>>> article.text
'... Elementos de ladetuvieron a tres integrantes dely ...'
If someone knows how to fix this issue, it'd be a big help.
- Dominant language
- Python
- Stars
- 15.2k
- Forks
- 2.1k
- PR merge metrics
- No merged PRs in 30d
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.
More from codelucas/newspaper
-
Difficulty 1/5 Under an hour Newbie friendliness 65/100
-
New Open
Difficulty 5/5 Over a week Newbie friendliness 5/100
-
Difficulty 5/5 Over a week Newbie friendliness 10/100
-
Difficulty 5/5 Over a week Newbie friendliness 1/100
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
All issues in codelucas/newspaper
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
bancolombia/sentinel#23 ·
-
test md OpenCI
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
bug client
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100