search

Home  >  Q&A  >  body text

python - scrapy 处理 文章 分页的内容

如一篇文章有2-3页,然后想把这些内容页爬下来,拼接成一页,然后再放入数据库。
文章url如:article_1.html,article_2.html
item有:item['title'],item['content']
item['content']就是拼接成一页的内容。
大概怎么写呢?

PHP中文网PHP中文网2876 days ago457

reply all(3)I'll reply

  • 大家讲道理

    大家讲道理2017-04-18 10:34:48

    Find the paging interface url

    reply
    0
  • 大家讲道理

    大家讲道理2017-04-18 10:34:48

    Find the link to the next page and add it to the list of crawled URLs

    reply
    0
  • PHP中文网

    PHP中文网2017-04-18 10:34:48

    You can write regular rules in the rules to automatically scan for matching URLs

    reply
    0
  • Cancelreply