teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

ソースコードの結果を書き足した

2022/05/20 07:08

投稿

tarotarotaro
tarotarotaro

スコア6

title CHANGED
File without changes
body CHANGED
@@ -27,4 +27,10 @@
27
27
  for element in topic.find_all('p'):
28
28
  print(element.text)
29
29
  ```
30
+ 上記の結果は以下です。
31
+ Traceback (most recent call last):
32
+ File "scjaru.py", line 9, in <module>
33
+ for element in topic.find_all('p'):
34
+ AttributeError: 'NoneType' object has no attribute 'find_all'
30
35
 
36
+