如何从该链接获取数据到JSON?

时间:2019-11-25 12:55:25

标签: python asp.net json beautifulsoup python-requests

我正在尝试使用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')

为什么我没有获得页面的完整源代码?

0 个答案:

没有答案