我试图用Python将搜索结果从这个链接提取到一个JSON文件中,但是在这种情况下普通的请求方法似乎不起作用。如何提取所有结果?
url=https://apps.usp.org/app/worldwide/medQualityDatabase/reportResults.html?country=Ethiopia%2BGhana%2BKenya%2BMozambique%2BNigeria%2BCambodia%2BLao+PDR%2BPhilippines%2BThailand%2BViet+Nam%2BBolivia%2BColombia%2BEcuador%2BGuatemala%2BGuyana%2BPeru&period=2017%2B2016%2B2015%2B2014%2B2013%2B2012%2B2011%2B2010%2B2009%2B2008%2B2007%2B2006%2B2005%2B2004%2B2003&conclusion=Both&testType=Both&counterfeit=Both&recordstart=50
我的代码
r = requests.get(url)
results_page = BeautifulSoup(response.content,'lxml')
为什么我没有得到完整的源代码的网页?你知道吗
目前没有回答
相关问题 更多 >
编程相关推荐