【发布时间】:2020-12-19 20:18:36
【问题描述】:
我正在使用 python (beautifulsoup4) 创建一个网络爬虫。我想获取“Hackerearth”网站的内容,但由于我已经在 heroku(美国服务器)上托管了我的网络爬虫,所以它影响的是美国版的 hackerearth,而不是基于我国家的版本。所以我想根据我的国家来获取网站版本。
url = "https://www.hackerearth.com/challenges/"
r = requests.get(url)
【问题讨论】:
标签: python-3.x heroku web-scraping beautifulsoup proxy