admin管理员组

文章数量:1558033

from BeautifulSoup import BeautifulSoup
from urllib2 import urlopen

def get_wotd():
    return str((BeautifulSoup(urlopen('http://www.reference/wordoftheday'))).findAll('h2'))

print get_wotd()

本文标签: htmlparsingPythonoutputsoup