【发布时间】:2016-03-30 07:58:38
【问题描述】:
做了几个成功的小项目,多年来一直在努力从这个网站获得请求 - 有什么建议吗?
更新 - 想要获得完整的美味汤请求,以便我可以开始从表格中抓取信息
from bs4 import BeautifulSoup
import requests
r = requests.get("http://www.transfermarkt.co.uk/championship/marktwerte/wettbewerb/GB2")
soup = BeautifulSoup(r.content,"html.parser")
print soup
返回
<html>
<head><title>404 Not Found</title></head>
<body bgcolor="white">
<center><h1>404 Not Found</h1></center>
<hr><center>nginx</center>
</hr></body>
</html>
【问题讨论】:
-
你希望它返回什么? (更新您的问题!)(欢迎来到 SO!)
标签: python beautifulsoup python-requests