Skip to content

Instantly share code, notes, and snippets.

View JavaIsNotHard's full-sized avatar

Jibesh Shrestha JavaIsNotHard

  • Kathmandu, Nepal
View GitHub Profile
from urllib.request import urlopen
from bs4 import BeautifulSoup
html = urlopen('https://merolagani.com/LatestMarket.aspx')
bs = BeautifulSoup(html.read(), 'html.parser')
namelist = bs.find('div', {'id': 'ctl00_ContentPlaceHolder1_LiveTrading'})
childtag = namelist.find('table')
childchildtag = childtag.find('tbody')