from pyquery import PyQuery as pq 

if I run code in terminal, only output this

<div id="hp_container"><div id="bgDiv"><div id="bgImgProgLoad" data-ultra-definition-src="/th?id=OHR.AltaFloresta_...
from pyquery import PyQuery as pq 

When I run the above code in jupyterab, I get following result

[<div#hp_container>, <div#bgDiv>, <div#bgImgProgLoad>, ...]

The selector of each div tag is automatically displayed in the result, such like div#hp_container, Now I can only see them in the output in jupyterlab, I don't know what kind of attribute or method to get each selector name itself.

Anonymous Asked question May 14, 2021