python
1import requests 2from bs4 import BeautifulSoup 3 4response = requests.get('http://test.neet-ai.com') 5soup=BeautifulSoup(response.text,'lxml') 6title = soup.title.stirng 7print(title)
python
1#エラー 2ConnectionError: HTTPConnectionPool(host='test.neet-ai.com', port=80): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x000001A8C30B7908>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed',)) 3
https://qiita.com/neet-AI/items/98d4194872ee4f53e3b4
このサイトを真似ながらやっているのですが上記のエラーの解決方法が分かりません。
初心者でもわかりやすく解説と解決方法を簡単に教えてください。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。