Questions tagged as 'xpath'

2
answers

How do I get the a tag inside a DIV using XPATH?

I'm trying to get the data from a DIV that contains the following structure: <div class="item" style="height:273px"> <a href="/arapiraca/anuncios/detalhes/159695-honda-cg-150-2008"> <img alt="" src="/i.php?w=148&h=119&am...
asked by 23.04.2014 / 16:32
1
answer

Is it possible to get the value of the background-image attribute through xpath?

I have the following structure: <div class="xGh" style="background-image: url('name_file.jpg');"></div> Where do I need to capture: name_file.jpg I tried to use the solution featured in this response , but not work...
asked by 01.11.2017 / 11:57
1
answer

XPath does not recognize XML elements

I have an XML. But something is happening that I do not understand.  When I try to use XPath to return the Author elements, using //Author (I tested it via link ) is only bringing only the ones contained in the SearchBookResponse...
asked by 04.05.2016 / 01:47
2
answers

Capture and reduce values of multiple divs and inputs

I got it with the help of @ QMechanic73 , make a parser on a remote site, and capture the values between the span tags that are within several div with their given id , and span with their class and values b...
asked by 24.02.2015 / 19:58
2
answers

how to display images with xsl with the img src of the xml file

I have for example the XSL code: <xsl:for-each select="//*"> <xsl:for-each select="imagem"> <img> <xsl:attribute name="src"> <xsl:value-of select="."/> </xsl:attribute> </img...
asked by 01.04.2014 / 21:00
2
answers

How to select an element that depends on another by XPath

I need to build a xpath that returns Meu elemento only if Dependencia is present on the screen. I'm currently filtering Meu elemento using the following snippet: //div[contains(text(), 'Meu elemento')] ......
asked by 13.11.2017 / 14:52
1
answer

Problems with parameter restrict_xpaths in a crawler

I have no Python experience but I decided to try doing anything with Scrapy for testing. So I'm trying to collect the existing articles on a given page, namely a DIV element with a devBody ID. In this sense, my goal is to get the title of t...
asked by 10.03.2016 / 20:15
1
answer

How to make a query within an XML file?

I need the value of <version> to be returned to a variable in a WPF application. The XML file is on the server and contains: <?xml version="1.0" encoding="ISO-8859-1" ?> <Application> <Version>1.2.3.5</Versio...
asked by 26.03.2014 / 18:07
1
answer

Extract the li list with xpath

Hello, I'm developing an application with java + selenium I have the second web element: WebElement results = ( new WebDriverWait( driver, timeout ) ).until( ExpectedConditions.visibilityOfElementLocated( By.id( "local" ) ) ); Where id...
asked by 30.05.2017 / 20:49
0
answers

XPath to collect data

I'm developing a bot to capture certain site information, but when I try to collect the information related to the description of the collected item, it does not go through while making the other collections. It saves the different inf...
asked by 10.04.2018 / 18:25