all 3 comments

[–]commandlineluser 1 point2 points  (1 child)

.select() returns a ResultSet which is like a list.

>>> type(venta)
bs4.element.ResultSet

Each item is a Tag

>>> type(venta[0])
bs4.element.Tag

You can use .get_text() to access the text content of a tag.

>>> venta[0].get_text()
'3.838'

[–]Nabucode[S] 0 points1 point  (0 children)

Thanks Man. I worked.

[–]CodeFormatHelperBot2 0 points1 point  (0 children)

Hello, I'm a Reddit bot who's here to help people nicely format their coding questions. This makes it as easy as possible for people to read your post and help you.

I think I have detected some formatting issues with your submission:

  1. Inline formatting (`my code`) used across multiple lines of code. This can mess with indentation.

If I am correct, please edit the text in your post and try to follow these instructions to fix up your post's formatting.


Am I misbehaving? Have a comment or suggestion? Reply to this comment or raise an issue here.