Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from requests_html import HTMLSession
- from bs4 import BeautifulSoup
- session = HTMLSession()
- resp = session.get("http://exarid.uzex.uz")
- parser = BeautifulSoup(resp.text, 'html.parser')
- rows = parser.find_all('tr')
- for i in rows:
- cols = i.find_all('td')
- if cols:
- print('\t'.join([(k.text.replace('\n', '').replace('\r', '')) for k in cols]))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement