bookieio / bookieio/breadability
Article fail to pick some content
Open
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 205
- Forks
- 26
- PR merge metrics
- No merged PRs in 30d
Description
html_content = """<P> 最近一个月内,三圣股份共计登上龙虎榜1次,表明三圣股份股性一般。 (<A href='http://stock.jrj.com.cn/share,002742,lhb.shtml' target=_blank>更多龙虎榜查询请点击</A>)</P><P> 公司主要从事 建材化工、医药。</P>"""
article = Article(html_content)
print(article.main_text) # pick nothing
from lxml import etree
html = etree.HTML(html_content)
html.xpath('//text()') # pick target content successfully
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 reproducing the provided Article(html_content) example and compare Article.main_text with the lxml etree xpath('//text()') result. Trace how Article processes the HTML and verify that the Chinese paragraph content is included in main_text without breaking existing extraction behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- html, python
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100