Mon May 1 09:54:00 UTC 2023 inscode

上级 7b33fe65
print('欢迎来到 InsCode') import scrapy
class ExampleSpider(scrapy.Spider):
name = 'example'
start_urls = ['https://www.csdn.net']
def parse(self, response):
for link in response.css('a'):
yield {'link': link.css('::attr(href)').get()}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册