1、定义爬取的字段items.py

# -*- coding: utf-8 -*-

# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html

import scrapy
class GosuncnItem(scrapy.Item):
    """
    定义爬虫的字段
    """
    # define the fields for your item here like:
    # name = scrapy.Field()
    platform = scrapy.Field()
    position = scrapy.Field()
    num = scrapy.Field()
    time = scrapy.Field()
    url = scrapy.Field()
    content = scrapy.Field()
    responsible = scrapy.Field()
    page = scrapy.Field()
    pass
View Code

相关文章:

  • 2021-09-08
  • 2022-12-23
  • 2022-01-21
  • 2022-12-23
  • 2021-10-24
  • 2021-06-28
  • 2021-12-19
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-26
  • 2022-12-23
相关资源
相似解决方案