divs = soup.find_all('div','r-ent') #ptt的文章,都放在class是r-ent上! for d in divs: if d.find('div','date').text.strip() == date: #確認日期 ...
確定! 回上一頁