1

I tried this:

print(type(list(soup.children)[0]))

but the output I get includes the word 'class' Output: [<class 'bs4.element.Tag'>]

I'd like it to only show me 'bs4.element.Tag', just like if I wrote in the command line:

type(list(soup.children)[0])

Output: bs4.element.Tag

Aran-Fey
  • 39,665
  • 11
  • 104
  • 149
Ohad Rozen
  • 11
  • 1

0 Answers0