Skip to content
New issue

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

爬取今日头条 #2

Open
chenting0324 opened this issue Jul 25, 2018 · 1 comment
Open

爬取今日头条 #2

chenting0324 opened this issue Jul 25, 2018 · 1 comment

Comments

@chenting0324
Copy link

你好,我在运行./start.sh时出现如下问题
File "/home/i-chenting/NewsSpider-master/news_spider/news_spider/spiders/TouTiaoSpider.py", line 41, in parseNews
title = articles.xpath("//div[@Class='article-header']/h1/text()").extract()[0]
IndexError: list index out of range
请问是什么原因

@laozhu123
Copy link

老哥项目运行起来了吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants