我正试图在这里取消一个电影网站:http://www.21cineplex.com/nowplaying
我已经上传了这个问题中HTML主体作为图像的截图。link to screenshot here我很难抓住电影标题和描述,这是<P>
标签的一部分。由于某些奇怪的原因,描述不是requests对象的一部分。当我试图用soup查找ul和类名时,也找不到它。有人知道为什么吗?我使用的是python3。这是我目前为止的代码:
r = requests.get('http://www.21cineplex.com/nowplaying')
r.text (no description here)
soup = bs4.BeautifulSoup(r.text)
soup.find('ul', class_='w462') # why is this empty?
此服务器正在检查
Referer
标头。如果没有Referer
,则发送主页面。但是它不检查这个头中的文本,所以它甚至可以是空字符串。在相关问题 更多 >
编程相关推荐