Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2018
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.58 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.  
  11. wszystkie_kolejki = bsObject.find_all('table', class_="main", width="600", border="0", cellspacing="0", cellpadding="1",
  12.                            align="center")
  13.  
  14. wszystkie_kolejki
  15.  
  16. kolejki = []
  17. for kolejka in wszystkie_kolejki:
  18.     gos = kolejka.find_all('b')
  19.     kolejki.append(gos)
  20.    
  21. kolejki
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement