Python Forum

Full Version: Scrapper for websites
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello I am having issues with this guide I am following my current version is "3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)]" "The problem is with line from bs4 import BeautifulSoup"

import requests

page = requests.get("")



from bs4 import BeautifulSoup
soup = BeautifulSoup(page.content, "html.parser")

This is the error I get:

Traceback (most recent call last): File "C:\Users\Anubis\AppData\Roaming\Sublime Text 3\", line 13, in <module> print(soup.prettify()) File "C:\Users\Anubis\AppData\Local\Programs\Python\Python37\lib\encodings\", line 19, in encode return codecs.charmap_encode(input,self.errors,encoding_table)[0] UnicodeEncodeError: 'charmap' codec can't encode characters in position 6628-6634: character maps to <undefined>