Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Scrapper for websites
#1
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("https://www.hybrid-analysis.com/recent-submissions?filter=file")

print(page.status_code)

print(page.content)

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

print(soup.prettify())
This is the error I get:

Error:
Traceback (most recent call last): File "C:\Users\Anubis\AppData\Roaming\Sublime Text 3\test.py", line 13, in <module> print(soup.prettify()) File "C:\Users\Anubis\AppData\Local\Programs\Python\Python37\lib\encodings\cp1252.py", 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>
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Webscrapping sport betting websites KoinKoin 3 5,465 Nov-08-2023, 03:00 PM
Last Post: LoriBrown
  Web Scraping Sportsbook Websites Khuber79 17 301,351 Mar-17-2021, 12:06 AM
Last Post: Whitesox1
Thumbs Up Issue facing while scraping the data from different websites in single script. Balamani 1 2,127 Oct-20-2020, 09:56 AM
Last Post: Larz60+
  Can urlopen be blocked by websites? peterjv26 2 3,392 Jul-26-2020, 06:45 PM
Last Post: peterjv26
  Python program to write into websites for you pythonDEV333 3 2,520 Jun-08-2020, 12:06 PM
Last Post: pythonDEV333
  Scraping Websites to post on Telegram kobryan 1 2,653 Oct-19-2019, 07:03 AM
Last Post: metulburr
  Scraping Websites to post on Telegram kobryan 0 3,432 Oct-09-2019, 04:11 PM
Last Post: kobryan
  Scrapping .aspx websites boxingowl88 3 8,261 Oct-10-2018, 05:35 PM
Last Post: stranac
  scraping javascript websites with selenium DoctorEvil 1 3,377 Jun-08-2018, 06:40 PM
Last Post: DoctorEvil
  [Intermediate] Key Word Scrapper with Python and Selenium MIPython 0 5,766 Dec-21-2017, 03:35 PM
Last Post: MIPython

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020