Issue with 'html.parser'

28 views
Skip to first unread message

Mehdi Najmi

unread,
Nov 7, 2021, 7:48:46 AM11/7/21
to beautifulsoup
Hi , 

I tried  the following codes in Jupyter Notebook  :

import requests

from bs4 import BeautifulSoup 

page=requests.get('https://www.udacity.com/')

soup=BeautifulSoup(page.text, 'html.parser' )

Soup

does not give any error and works but does not divide html codes and the result does not  look like a html code page . It is very similar to when i try page.text.

 not sure why . any help welcome
Reply all
Reply to author
Forward
0 new messages