環境
OS: Windows 10(バージョン 1909, OS ビルド 18363.778)PyCharm: 2020.1(Community edition)
Python: 3.7
requests-html: 0.10.0
コード
from requests_html import HTMLSession
# セッション開始
session = HTMLSession()
r = session.get('https://shikiho.jp/')
titles = r.html.find('.title')
for title in titles:
print(title.text)
エラーコード
Unresolved attribute reference 'html' for class 'Response'
おわりに
誰か助けてー分かる方いらっしゃいませんか……
参考
- requests-htmlを使ってみた - Pythonと本と子供と雑談と
https://www.mazarimono.net/entry/2018/09/29/requests-html - Unresolved Attribute Reference · Issue #323 · psf/requests-html · GitHub
https://github.com/psf/requests-html/issues/323
0 件のコメント :
コメントを投稿