import requests
from bs4 import BeautifulSoup
url = "https://www.yahoo.co.jp/"
response = requests.get(url)
#response.encoding = response.apparent_encoding
with open('hoge.html', 'w') as file:
file.write(response.text)
print(response.encoding)
取得したyahooが文字化けするんですが、何が原因かわかりませんか?
文字コードはutf8になるので、これで問題ないはずですが、、、
くだすれPython(超初心者用) その49【まず1嫁】
レス数が950を超えています。1000を超えると書き込みができなくなります。
978デフォルトの名無しさん
2020/08/27(木) 18:02:56.98ID:ygBOOYPTレス数が950を超えています。1000を超えると書き込みができなくなります。
