import scrapy
from fenye.items import FenyeItem
import requests
class ZhfySpider(scrapy.Spider):
name = 'zhfy'
# allowed_domains = ['www.xxx.com']
start_urls = ['http://www.chinahr.com/channel/rizhao/pn1/']
# 分页操作
urls = 'http://www.chinahr.com/channel/rizhao/pn%d/'
page_num = 2
def parse(self, response):
li_list = response.xpath('//div[@class="assortment_right_tab_content"]/ul/li')
for li in li_list:
job_name = li.xpath('./div[1]/h1/text()').extract_first()
job_content = li.xpath
Scrapy模块爬取中华英才网招聘信息(分页)
最新推荐文章于 2024-05-30 15:43:46 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)