跳到主文
部落格全站分類:不設分類
import requests from bs4 import BeautifulSoup .get("https://www.ptt.cc/bbs/MobileComm") soup = BeautifulSoup(r.text, "html.parser") sel = soup.select("div.title a") for s in sel: print(s["href"],s.text) r = requests
aa22456222
羽 發表在 痞客邦 留言(0) 人氣()
留言列表