Python获取知乎热榜信息用钉钉freFeedCardMsg消息展示
import requests # 导入requests包
import json
import time
from bs4 import BeautifulSoup
# 知乎URL
url = 'https://www.zhihu.com/billboard'
headers = {"User-Agent": "", "Cookie": ""}
# 获取知乎热榜数据
def get_hot_zhihu():
res = requests.get(url, headers=headers
原创
2021-01-07 14:42:07 ·
408 阅读 ·
0 评论