python爬取ppt_Python-爬蟲13-實作-3-爬取PPT網站(完整程式碼)
爬取PPT網站(完整程式碼)import requestsimport timeimport jsonfrom bs4 import BeautifulSoupdomain_url = 'https://www.ptt.cc'def get_ppt_page(url):resp = requests.get(url=url,cookies={'over18': '1'} # 紀錄cookies ...