We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
用 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]')
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
No branches or pull requests
用 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]')
The text was updated successfully, but these errors were encountered: