Thank you guys in advance for your attention 😄
I'm trying to use the IMPORTXML function on Google Sheets.
For example:=IMPORTXML("https://www.linkedin.com/in/salesmanagerdigital/, XMLPATH) should return "Senior Enterprise Account Executive, Southern Europe", which is the complete Role.
Firefox Full xPath Finder extension gives me:
/html/body/div[5]/div[3]/div/div/div[2]/div/div/main/section[6]/div[3]/ul/li[1]/div/div[2]/div/div[1]/div/span/span[1]
When I try this in Google Sheets it returns an error: #N/A (Import Content is Empty).
Thanks you so much for your support.
Related
I'm trying to import stock suggestions into a spreadsheet and have successfully done so from 3 websites, but I am struggling with the 4th.
=IMPORTXML("https://www.tipranks.com/stocks/amzn/price-target","//h3[#class='client-components-stock-research-analysts-analyst-consensus-style__buy'")
Is the command I'm using to try to pull the tag under "Analyst Consensus Rating" from https://www.tipranks.com/stocks/amzn/price-target. But I keep getting:
Error Imported XML content can not be parsed.``` Tips for what I'm doing wrong would be highly appreciated
Google Sheets does not support web scraping of JavaScript controlled elements. you can easily check it by disabling JS for a given site and only what's left visible can be scraped. unfortunately, in your case, that's nothing:
I'm trying to import the table of Fortune 500 companies for 2019 into Sheets. I've tried the formula
=IMPORTXML("https://fortune.com/fortune500/2019/search/","//div[#class='ReactTable']")
and some variations of this function but can't get it correct. Any help please?
the website you trying to scrape is under JavaScript control. Google Sheets is not capable of importing JS elements. you can test this simply by disabling JavaScript for a given site and what you are left with is able to be scraped. in your case: nothing:
Hello, everybody.
My website is [http://cs2.ftu.edu.vn]. When I search keyword "cs2 ftu" on Google engine. The result is the same in photo
Please help me fix it !
How can I get a snippet like in the picture below in google page results?
I submitted a sitemap.xml in google webmaster tools 3 months ago, but there is no change until now?
Do you know how I should proceed to get this Result? Or the name (keyword) of this structure?
So, the keyword I was looking for is "Google Sitelinks".
Here as some documentations about it :
https://support.google.com/webmasters/answer/47334?hl=en
https://developers.google.com/structured-data/slsb-overview
http://bloggerspassion.com/google-site-links-how-to-get-google-sitelinks-for-your-website/
Thanks to #Mark.
I'm trying to use Xpath to pull in the meta descriptions from web pages, using Google Sheets.
I have this working to pull in the titles: =importXml(www.example.com; "//title")
Here are two sources of my learning:
http://seogadget.co.uk/playing-around-with-importxml-in-google-spreadsheets/
http://docs.google.com/support/bin/answer.py?hl=en&answer=75507
I have read many other posts on this site, and this seems to be the similar idea of what I want:
"/html/head/meta[#name='description']/#content"
"/*/head/meta[#name='description']/#content"
"//head/meta[#name=\"description\"]/#content"
None of these work in Google Sheets, which specifies to write it in Xpath. The only difference, is that in Google Sheets you are to use ' in place of " (hence why description is like that). I've honestly tried it about 219 different ways....no luck.
Any ideas? Thanks in advance!
//meta[#name='description']/#content
So your full URL call in google sheet would be
=importxml(A1,"//meta[#name='description']/#content")
I've built some awesome SEO tools using importXML - this is just the start of it mate! :)