Guest User

Untitled

a guest
Dec 14th, 2016
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.28 KB | None | 0 0
  1. from urllib.request import urlopen
  2. from bs4 import BeautifulSoup
  3.  
  4. response = urlopen("http://www.ceneo.pl/;szukaj-laptopy;0020-30-0-0-0.htm")
  5. page_source = response.read()
  6. soup = BeautifulSoup(page_source, 'html.parser')
  7.  
  8. for link in soup.find_all('a'):
  9.     print(link.get('href'))
Add Comment
Please, Sign In to add comment