- 博客(3)
- 收藏
- 关注
原创 用selenium抓斗鱼相关信息
xpath方法报错,改了两天,能成功获取了 import json import time from selenium import webdriver from selenium.webdriver.common.by import By class Douyu(object): def __init__(self): self.url = 'https://www.douyu.com/directory/all' self.driver = webdriver
2022-04-16 10:58:04 137
原创 百度翻译案例
早上起来,高数课,挂上后复习一下爬百度翻译的案例吧 import requests import json class Baidu(object): def __init__(self,word):#构造请求函数 self.url='https://fanyi.baidu.com/sug' self.headers={ 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) Ap
2022-04-11 10:49:29 722
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人