Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.49 KB | None | 0 0
  1. #importowanie bibliotek
  2. import urllib.request
  3. from bs4 import BeautifulSoup
  4. import pandas as pd
  5.  
  6. #otwieranie strony
  7. html = urllib.request.urlopen("http://www.90minut.pl/liga/0/liga9938.html")
  8. html_code = html.read()
  9. bsObject = BeautifulSoup(html_code, "html.parser")
  10. wszystkie_kolejki = bsObject.find_all('tr',  align="left")
  11.  
  12. td = []
  13. b = []
  14. for kolejka in wszystkie_kolejki:
  15.     td.append(kolejka.find_all('td', nowrap = "", valign = "top"))
  16.     b.append(kolejka.find_all('b'))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement