Last active
August 29, 2015 13:56
-
-
Save petrjoachim/9341584 to your computer and use it in GitHub Desktop.
Komentář k článku http://www.soom.cz/clanky/1136--Programovani-spideru-v-Pythonu-1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# pip install BeautifulSoup requests | |
import requests | |
from BeautifulSoup import BeautifulSoup | |
response = requests.get("http://www.itworld.com/news") | |
html = response.text | |
soup = BeautifulSoup(html) | |
print soup.findAll("h3") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment