url="https://www.clinicalkey.com/ui/service/search?ckproduct=CK_US&fields=cid,itemtitle,eid,contenttype,hubeid,refimage,pdfeid,sourcetitle,pagerange,coverdatestart,authorlist,volumeissue,authorg,condition,intervention,copyrightyear,issn,pubdate,datecreatedtxt,daterevisedtxt,statustype,exactsourcetitle,label,sectionid,sourcecopyright,sourceeditor,sourcetype,toc,volume,issue,pagefirst,pagelast,pageinfo,chaptertitle,chapternumber,ngcsynthesisurl,altlangeid,provider,summary,ref,reftitle,altlang,lang,srcid,tradenames,subtype,sections,sectiontitle,chptitle,doctype,embargo,sectionids&fullTextOnly=true&group=true&nestMedlineData=true&nestStudyTypes=true&onlyEntitled=true&query=tumor,+kidney&rows=1§ions=results,facets,resultsanalysis,bestbets,topicpages,didyoumean,didyoumean,disambiguations&showExpandedResult=true&showSelectedContent=false&start=0"
res = driver.get(url)
print(driver.page_source)
代码输出:-
<html><head></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">{"start":0,"numberfound":818,"results":[{"cid":"298362","itemtitle":"Renal Tumors Classification, Biology, and Banking Study"...</pre></body></html>
浏览器在调用相同网址时显示的输出为:-
<html><head></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">{"start":0,"numberfound":15788,"results":[{"cid":"319980","itemtitle":"Acquired Cystic Kidney Disease and Malignant Neoplasms: Cancer in Dialysis Patients".......</pre></body></html>