-5

im doing a freelancing job, so please tell me how to get only class from shopee website.....

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 Answers1

0

Is the class you want part of the HTML page you download? If it's not (meaning it's later generated by javascript), you should check out this question: Is this possible to load the page after the javascript execute using python?

gnvk
  • 1,494
  • 12
  • 14