作者:
lovex (L O V E X)
2020-09-01 17:26:32新手學習爬蟲中~
請問如以下的學校公告欄
http://www.cshs.kh.edu.tw/post/book.asp
soup = BeautifulSoup(html, 'html.parser')
for link in soup.find_all(href=re.compile("view")):
print(link.get('href'))
這樣可以抓到內文實際的連結,但不知如何抓細節
主要想抓整個table把新的資料寫入sql db, 不知道怎麼抓好呢?
(因為它的table都沒有id 或 class之類的~)
(新增資料