ITNEPPer来てくれ質問がある #111

111以下、名無しにかわりましてVIPがお送りします:2018/12/19(水) 04:34:07.73 ID:v2r8hrMv

は???無理じゃん!!!!
やっぱり>>107じゃねえか
newslist=soup.find_all('ul', attrs={'class': 'listFeed'})したら
AttributeError: ResultSet object has no attribute 'find_all'.
You're probably treating a list of items like a single item.
Did you call find_all() when you meant to call find()?
ってエラーで
newslist=soup.select(".listFeedWrap")
for news in newslist:
title=news.find(attrs={"class":"titl"}).text -->見出し
link=news.find("a").attrs["href"] -->リンク

ってしてた
結論>>108って事で出来ない

まーーーーた最初に戻った
しかも無駄なトラブルシューティングしてたし萎える

このスレッドを全て表示


このスレッドは過去ログです。