我在玩,想在论坛帖子出现新帖子时给自己发一封电子邮件,但是当我用 urllib.urlopen 打开网址时,我会返回网页但没有页面正文。有人可以告诉我为什么会这样吗?我怎样才能得到尸体?
def loadUrl(adress):
adress = urllib.unquote(adress)
print("Loading " + adress)
socket =urllib.urlopen(adress)
html = socket.read()
socket.close()
soup = BeautifulSoup(html)
return soup
soup = loadUrl("http://de.pokerstrategy.com/forum/thread.php?threadid=498111")