下記コードがうまく取得できず、デバッグをしようとしたらエラー表示になってしまいました。
Python
1from bs4 import BeautifulSoup 2import requests 3 4res = requests.get('https://torina.top') 5soup = BeautifulSoup(res.text,'html.parser') 6for h2 in soup.find_all('h2'): 7 print(h2.text)
表示結果は以下です。
/anaconda3/bin/python /Applications/PyCharm.app/Contents/helpers/pydev/pydevd.py --multiproc --qt-support=auto --client 127.0.0.1 --port 53950 --file /Users/shokiyamada/PycharmProjects/python_programming/test_4.py pydev debugger: process 22403 is connecting Connected to pydev debugger (build 182.4129.34) Process finished with exit code 0
どなたか分かりますでしょうか。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/11/27 15:26