Answers for "how can i scrape elements html in a web site with python"

1

python get html info

from bs4 import BeautifulSoup

my_HTML = #Some HTML file (could be a website, you can use urllib for that)

soup = BeautifulSoup(my_HTML, 'html.parser')

print(soup.prettify())
Posted by: Guest on August-19-2020

Code answers related to "how can i scrape elements html in a web site with python"

Python Answers by Framework

Browse Popular Code Answers by Language