Last answered:

10 Oct 2022

Posted on:

06 Sept 2022

0

Don't see any javascript with code : print(soup.text)

Hi,

As titled, either the code "print(soup.text)" or "soup.text" shows javascript.

It's almost the same as I see on the website...pretty clean.

Anything wrong?

Thanks!

1 answers ( 0 marked as helpful)
Instructor
Posted on:

10 Oct 2022

1

Hi,
There isn't anything wrong, after all soup.text will return all the text that is on the page + some additional text.
The amount of that additional text will depend on how the webpage was coded, and it may be a much smaller or a much larger portion of the whole text. So, nothing to worry about, you just opened a page that has small amount of javascript to begin with :).

Best,
Nikola, 365 Team

Submit an answer