logo
Tags down

shadow

Trouble grabbing background image url with importxml / xpath


By : AzaroCZ
Date : October 17 2020, 08:10 PM
this will help I'm trying to scrape some background image urls into a google sheet. Here is an example of the container- , Your approach was close. Try the following XPath expression:
code :
substring-before(substring-after(//section[@class='_4gsw _7of _1ue_']/@style, 'background-image: url('),'?')
=IMPORTXML(B2,"substring-before(substring-after(//section[@class='_4gsw _7of _1ue_']/@style, 'background-image: url('),'?')")


Share : facebook icon twitter icon

Xpath command in importXML


By : user2084994
Date : March 29 2020, 07:55 AM
will be helpful for those in need I need a some help in getting a ImportXML command to return the result I'm looking for. I'm using Google Sheets. , I think this xpath will help you
code :
xpath = "//itemID[contains(.,'1')]/following-sibling::maxPrice"

Keep having errors with importxml + xpath


By : Annika Frii
Date : March 29 2020, 07:55 AM
seems to work fine Since the data you want is in tables, it might be easier to use importhtml. The table you want you can get with this:
code :
=IMPORTHTML("http://www.journaldesfemmes.com/maman/creches/3-pom/creche-3098","table",2)
=index(IMPORTHTML("http://www.journaldesfemmes.com/maman/creches/3-pom/creche-3098","table",2),3,2) 
=index(IMPORTHTML("http://www.journaldesfemmes.com/maman/creches/3-pom/creche-3098","table",2),4,2)

Xpath with contains() in importXML()


By : user1480645
Date : March 29 2020, 07:55 AM
fixed the issue. Will look into that further I've done dozens times, but now don't get what I'm doing wrong. I want to extract specific records, into 2 separate columns (I know that order wil not match), so I use: , damn, those localles!!!... must be:
code :
//a/@href[contains(., "github")]
//*[contains(text(), "Pricing:")]

My background image doesn't expand fully or show up for the full size. Trouble with background image in html section


By : user2142488
Date : March 29 2020, 07:55 AM
With these it helps To add a background image to a container with inline CSS you can do this:
Note*: Make sure to remove the border: 1px solid red;. This was just for demonstration.
code :
<div class="container" style="border: 1px solid red; background-image: url('https://i0.wp.com/wptavern.com/wp-content/uploads/2016/07/stack-overflow.png?ssl=1'); background-size: 100% 100%; background-repeat: no-repeat;">
  
     <p style="padding: 100px;">content</p>

</div>

Trouble with Xpath in Google Spreadsheets (ImportXML)


By : Miguelangel Medina
Date : March 29 2020, 07:55 AM
To fix this issue You can wrap your function with the concatenate()-function to make sure it all shows up in one cell:
Related Posts Related Posts :
shadow
Privacy Policy - Terms - Contact Us © voile276.org