gawel / pyquery

A jquery-like library for python
http://pyquery.rtfd.org/
Other
2.3k stars 182 forks source link

How to select a second element? #175

Closed Andru1999 closed 6 years ago

Andru1999 commented 6 years ago

How can I get an object with a specified number? I tried to get the element using the following construct page('.w-post-data)[1] but I got instanse of the HtmlElement. This class I had gotten when I was trying iterated on page('.w-post-data). How I can solf this problem?

gawel commented 6 years ago

page('.w-post-data).items()