python scan for html element on page code example
Example 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())
Example 2: python parse html
import requests
from bs4 import BeautifulSoup
vgm_url = 'https://www.vgmusic.com/music/console/nintendo/nes/'
html_text = requests.get(vgm_url).text
soup = BeautifulSoup(html_text, 'html.parser')