jackfrued / jackfrued/Python-100-Days
62.用Python解析HTML页面-2.md 一行代码疑似有误
Nobody has claimed this yet.
- Dominant language
- Jupyter Notebook
- Stars
- 187k
- Forks
- 55.8k
- PR merge metrics
- No merged PRs in 30d
Description
用 XPath 解析方式改写之前获取豆瓣电影 Top250的代码,其中有一行代码有误:
rank_spans = tree.xpath('//[@id="content"]/div/div[1]/ol/li[1]/div/div[2]/div[2]/div/span[2]')
应该为:
rank_spans = tree.xpath('//[@id="content"]/div/div[1]/ol/li/div/div[2]/div[2]/div/span[2]')
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
Open 62.用Python解析HTML页面-2.md and locate the XPath example for retrieving Douban Top 250 movie ranks. Compare the two XPath expressions in the issue and correct the extra li[1] segment; done means the example uses the XPath shown as correct and remains valid for all list items.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100