摘要: # encoding:utf-8 from bs4 import BeautifulSoup import requests import csv import bs4 # 检查url地址 def check_link(url): try: r = requests.get(url) r.raise 阅读全文
posted @ 2022-11-25 15:21 chengxuyonghu 阅读(281) 评论(0) 推荐(0) 编辑
摘要: # encoding:utf-8 import os import requests from bs4 import BeautifulSoup #爬虫头数据 cookies = { 'SINAGLOBAL': '6797875236621.702.1603159218040', 'SUB': '_ 阅读全文
posted @ 2022-11-25 15:13 chengxuyonghu 阅读(60) 评论(0) 推荐(0) 编辑
摘要: # encoding:utf-8 import requests import csv headers = { 'cookie':'device_id=02a63e162n=0035d9dae1eded6e3=1666944669347886', 'User-Agent': 'Mozilla/5.0 阅读全文
posted @ 2022-11-25 15:11 chengxuyonghu 阅读(178) 评论(0) 推荐(0) 编辑