Sierra 10.12.1
classでの抽出を行い以下のような構成になりました。
このときsrcのみをうまく抽出したいのですがうまくいきません。
以下aに突っ込んでいます。
[<img alt="" class="" id="" src="" title=""/>,<img alt="" class="" id="" src="" title=""/>,<img alt="" class="" id="" src="" title=""/>]
このときすべてのsrcだけを取り出したい場合どのように実現しますか?
行ったこと
a.find_all("src")
a.find_all("img")
どちらも
"ResultSet object has no attribute '%s'. You're probably treating a list of items like a single item. Did you call find_all() when you meant to call find()?" % key 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()?
お手柔らかにお願いいたします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。