response = requests . get ( url , headers = header ) soup = BeautifulSoup ( response . content , 'html.parser' )
import sys import locale print ( sys . getfilesystemencoding ( ) ) print ( locale . getpreferredencoding ( ) )