1.用 scrapy 新建一个 tencent 项目

Tencent社会招聘scrapy爬虫 --- 已经解决

2.在 items.py 中确定要爬去的内容

 1 # -*- coding: utf-8 -*-
 2 
 3 # Define here the models for your scraped items
 4 #
 5 # See documentation in:
 6 # http://doc.scrapy.org/en/latest/topics/items.html
 7 
 8 import scrapy
 9 
10 
11 class TencentItem(scrapy.Item):
12     # define the fields for your item here like:
13     # 职位
14     position_name = scrapy.Field()
15     # 详情链接
16     positin_link = scrapy.Field()
17     # 职业类别 
18     position_type = scrapy.Field()
19     # 招聘人数
20     people_number = scrapy.Field()
21     # 工作地点
22     work_location = scrapy.Field()
23     # 发布时间
24     publish_time = scrapy.Field()
View Code

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-22
  • 2021-11-07
  • 2021-12-26
  • 2021-12-30
猜你喜欢
  • 2021-10-08
  • 2021-04-27
  • 2022-12-23
  • 2021-11-15
  • 2021-11-17
  • 2022-12-23
  • 2021-08-21
相关资源
相似解决方案