I am accessing some website and I need to extract some data. To be more specific - from this part:
<input type="hidden" value="1" name="d520783895194bd08750e47c744d553d">
I need to extract the "name" part. I have heard that expressions in the time zone are not the best solution, so I would like to ask what is the best way to access this piece of data that I need.
After analyzing the site using NekoHTML or TagSoup (which should take care that the input field tag is not closed), I suggest using the xpath expression:
//input[@type='hidden'][@value=1]/@name
In groovy you apply it in GPath form .
Html, HTML-, . Java/Grovy:
http://www.wavyx.net/2009/01/13/looking-for-a-java-html-parser-or-groovy/
NekoHTML TagSoup , , . Html Parsers .
Source: https://habr.com/ru/post/1765467/More articles:Есть ли альтернатива FB.Connect.createApplication() в новом Javascript SDK для Facebook? - facebookRewriting "SELECT DISTINCT ON ..." using Django ORM - sqlHow to support the Enter key so that focus moves in the text column of a list - vb.nethttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1765465/why-does-fwrite-have-both-size-and-count-parameters-when-just-bytes-to-write-would-suffice&usg=ALkJrhi_7NM3fD11y-RDQgvqUl5ggdAw5AjQuery not working in wordpress - javascripthasoop + one key to each gearbox - hadoopHow to create a new branch based on an existing Git node branch? (Please read - tried the beginners guide) - githttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1765470/is-it-good-practice-to-have-an-a-tag-that-just-exists-for-its-tooltip&usg=ALkJrhhDKdcI0YyzucBBGsqcAvblfkGwJQChanging URLs in Sharepoint 2010 - sharepoint-2010SSH Connect to Mac with iPhone SDK for remote login - iphoneAll Articles