Python用requests库+BeautifulSoup库+re库获取微博热搜(有详解)

Python用requests库+BeautifulSoup库+re库获取微博热搜 import requests from bs4 import BeautifulSoup import re def main(): f=open('pythontxt\\weibohot.txt','w') #以写入的方式打开文本 r=requests.get("https:
相关文章
相关标签/搜索