# -*- coding: utf-8 -*- """ Created on 2023-07-13 15:54:59 --------- @summary: --------- @author: yangxin """ import feapder class DoubanBookSpider(feapder.AirSpider): def start_requests(self): yield feapder.Request("https://book.douban.com/subject/36415409/?icn=index-latestbook-subject") def parse(self, request, response): # 提取网站title print(response.xpath('//*[@id="wrapper"]/h1/span/text()').extract_first())
Wuyangxin