I try import mail address, witch is a protected with JS.
Could you see in example link.
https://docs.google.com/spreadsheets/d/1c257kLubJxfKQGOfN5C_PKdQxaBT5lt-tVC6k3hctJI/edit?usp=sharing
Is there a way to do this?
Thank you.
Related
I'm trying to see if it's possible to scrape data from Transfermarkt.com to import into a Google Sheets doc.
Currently, I'm trying to import the team data from a player's profile page (see example URL here: https://www.transfermarkt.co.uk/joao-palhinha/profil/spieler/257455) but in future may want to import other data as well.
I wonder if it's possible to scrape data in this way from Transfermarkt, but if it is, any advice on what I'm doing wrong would be very much appreciated!
Right now I'm using, =IMPORTXML(B1,"/html/body/div[3]/main/header/div[4]/div/span[1]/a") where the URL is in B1. I copied the Full XPath from the HTML, but have also tried this by copying just the XPath too.
It says Loading for a few seconds before returning N/A, with an error message 'Resource at URL not found'.
I'm expecting the result in this instance to be Fulham.
Thanks
I am having a hard time getting the xpath for this link.
Pls help get the right xpath of the upload and download speed values. Thank you in advance.
there isn't such XPath that would work because IMPORTXML does not support scrapping JavaScript elements. see:
workaround is to use different non-JS site
I tried the following function; but, I am unable to fetch the company info into google sheet. Can please someone point out what I am doing wrong.
Example:
Cell D4 contains the following link:
https://www.linkedin.com/company/linkedin/about/
Here is the function:
=importxml(D4,"//*[#id='ember71']/section/dl/dd[2]")
The link you quote bumps into an authentication page. The various import functions in Google Sheets cannot get through authentication or paywalls. They are evaluated at Google's servers rather than in your browser, so any authentication you may have completed in your browser does not help here.
I know it's possible to scrape websites but is it possible to have Google Sheets scrape a Google Doc for data? For example, if I have a bunch of google docs and they all have a line that says last updated: mm/dd/yyyy . Is it possible to have a google sheet with urls to the docs and have them scrape for the date
Solution
With the use of a script in your Spreadsheet you can actually retrieve information from any document of your drive. With the DocumentApp class in Apps Script you can actually retrive the body of your document with this method. Moreover, you can make searches using the findText() method of the Body class as shown here.
Therefore yes, with a script you could easily search a document for a sepecific text pattern like yours mm/dd/yyyy.
For more info about the DocumentApp functionallities check this documentation.
I hope this has helped you. Let me know if you need anything else or if you did not understood something. :)
I am trying to fetch data from a page using IMPORTHTML formula in Google spreadsheet. This was working till last week.. However, now website has added another layer for user authentication, and user has to login using valid username and password.
This has made IMPORTHTML to return NA instead of valid values. Can someone please assist me how to fetch this data. Any help would be highly appreciated.
Thanks in advance.
Google Sheets import functions can only access public available web pages.