标签:html pre awl code htm sel 爬取 back http
COOKIES_ENABLED = True
列:
from scrapy import Request class ASpider(CrawlSpider): name = ‘A‘ allowed_domains = [‘m.win4000.com‘] def start_requests(self): #爬虫开始地址 url = "http://m.win4000.com/wallpaper.html" #爬取所需的cookie cookieDir = { "r":"561", "t":"6ae405c3cec1ed393b2f05ba06a3500d", } yield Request(url,cookies=cookieDir)
标签:html pre awl code htm sel 爬取 back http
原文地址:https://www.cnblogs.com/zddsl/p/14928739.html