The < script > tags in html are all exactly the same. How can you tell the difference?

<html>
    <srcipt/>    // 1
    <srcipt/>    // 2
    //....
</html>

there must be no problem when loading. If I want to get a specified srcipt tag, I can get the element by getting the < script > array and then using the subscript.
but this is very unstable, and if the order is changed, you will get the wrong srcipt.
so I want to ask, is there any way for me to get the same srcipt? It doesn"t have a class or id for me. )


you can add a class or id


this seems to have no way. If the owner of the website does not add it, what else can the crawler do? we can only pray that the page structure of the site will not change frequently


You can match other attributes like id or class , src

.
Menu