def url_to_html(url):
res = urllib.request.urlopen(url)
data = res.read()
html = data.decode("utf-8")
return html
urlからhtmlを取得するコードなのですが、
このコードでスクレイピングを行うと
html><head><title>Request Rejected</title></head><body>The requested URL was rejected. Please consult with your administrator.<br><br>Your support ID is: 12908681150959956965</body></html>
というエラーコードが表示されます
この解決法わかるかた教えていただけるとありがたいです
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。