Skip to content

爬取今日头条 #2

Open
Open
@chenting0324

Description

你好,我在运行./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
请问是什么原因

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions