我在学习beautifulsoup,并试图编写一个小脚本在荷兰房地产网站上查找房屋。当我试图让网站的内容,我立即得到一个HTTP405错误: File "funda.py", line 2, in <module>
html = urlopen("http://www.funda.nl")
File "<folders>request.py", line 223, in url
我试图使用urllib从这个URL获取内容:“https://blockexplorer.com/block-index/0”。但是,当浏览器加载此链接时,它将重定向到另一个链接“https://blockexplorer.com/block/000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f”。 这里是我的代码: im