1. 首页
  2. 数据库
  3. 其它
  4. 爬取58同城商品页/time.sleep()反爬

爬取58同城商品页/time.sleep()反爬

上传者: 2020-12-23 05:31:08上传 PDF文件 34.37KB 热度 22次
from bs4 import BeautifulSoup import requests import time import json class Spider(): def __init__(self): self.headers={'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:74.0) Gecko/20100101 Firefox/74.0', 'Cookie':'userid360_xml=DA351ED943B7D514950F847645DEB635; time_c
用户评论