赞
踩
例如:获取英雄联盟英雄人物名称
import requests
import os
response = requests.get('https://game.gtimg.cn/images/lol/act/img/js/heroList/hero_list.js')
for x in response.json()['hero']:
print(x['name'], x['title'], x['goldPrice'])
例如获取cookie自动登录知乎网站
import requests
headers = {
'cookie': 'xxxx'
}
response = requests.get('https://www.zhihu.com/', headers=headers)
print(response.text)
from selenium.webdriver import Chrome
b = Chrome()
b.get('https://
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。