#
#
# .2021-01-28 10:48:35
Python
# ., 2021-01-28 10:48:35

How to get data of the same attribute from all tags?

There is a piece of a web page:

<li class="item-wrap" data-index="0" data-id="53573" data-mp3="/play/YmFjZDdhNDZjMjVmZTA0ZGQ3NzlkNzQ5MTllZWU4ZGN8cGxheQ.mp3">
</li>

<li class="item-wrap" data-index="1" data-id="84890" data-mp3="/play/MTBmYzIxYTU5ZTUyMDJkM2YxZjk5YmI0MmNjZWNiMmJ8cGxheQ.mp3">
</li>

And there are many such pieces. How to get data from all data-mp3 attributes using Selenium ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dr. Bacon, 2021-01-28
@andro1

Learn how xpath or css selector work, these are the basics of parsing. If this code is generated on the server and not on the client, then Selenium can be omitted.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question