python爬虫--小例子
网址:http://www.pharmnet.com.cn/tcm/knowledge/detail/105486.html
#爬虫
import requests,re
from bs4 import BeautifulSoup
api_url="http://www.pharmnet.com.cn/tcm/knowledge/detail/105486.html"
res=requests.get(api_url)
soup=BeautifulSoup(res.text,"html.parser")
原创
2020-09-12 17:40:39 ·
173 阅读 ·
0 评论