我怎么只能从python废弃</div>类(“ shopee-category-list__body”)

时间:2019-09-30 06:36:50

标签: python

我正在从事自由职业,所以请告诉我如何从shopee网站获得唯一的课程.....

urlpage=urlopen("https://shopee.co.id/fedorafashion page=0&shopCollection=13201396").read()

bswebpage=BeautifulSoup(urlpage, "lxml")

results=bswebpage.findAll("div",{'class':"shopee-category-list__body"}

1 个答案:

答案 0 :(得分:0)

您要的类是否属于您下载的HTML页面的一部分?如果不是(意味着它稍后由javascript生成),则应检查以下问题:Is this possible to load the page after the javascript execute using python?