Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import requests
- from bs4 import BeautifulSoup
- def get_data():
- url_to_scrape = 'http://www.in-pocasi.cz/archiv/archiv.php?historie=27-03-2017&klima_kraj=4&stanice_kraj=4#amaterske'
- r = requests.get(url_to_scrape)
- soup = BeautifulSoup(r.text, "html.parser")
- tables = soup.find_all('table')
- for table in tables:
- rows = table.find_all('tr')
- for row in rows:
- print(row.text)
- def main():
- get_data()
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement