I am trying to pull data from Yahoo Finance into Google Sheets using the importXML function. More specifically I am trying to pull it from the "key-statistics" page on a specific stock. For some reason, whenever I try to pull a value from this specific page, I get a "resource at URL not found" error. I've tried disabling JavaScript on the page to see if that was the issue, but everything appeared fine. It's specifically on this page however, and not on others. For example, I cannot pull XML data from https://finance.yahoo.com/quote/TSLA/key-statistics?p=TSLA, however, I can pull data from https://finance.yahoo.com/quote/TSLA perfectly fine. Is it an issue with the URL being wrong or has Yahoo somehow blocked data from being pulled?
Google Sheets ImportXML returns "Resource at URL not found" error
1.8k Views Asked by Cojack At
2
There are 2 best solutions below
0
Jason E.
On
Apparently, it seems that Yahoo made some changes on their website resulting to Google Sheets' IMPORT functions not to work properly on some tickers/webpage on Yahoo Finance.
As a workaround, I suggest using Google Sheets' built-in GOOGLEFINANCE() function or try to look for another source of data that will give you the same information that you want.
Related Questions in GOOGLE-SHEETS
- google sheets, search and replace for next colum
- AppScript to replace image in google slides
- Regex to match repeated substring in Google Sheets
- How to append row to specific columns with gspread?
- Find a value in a range of cells (multiple rows and columns)
- Create date column based on range
- Look up a value using month of the date
- Data recovery based on other data
- Gsheet - Automatically send an email using a date & time in a Cell
- google sheet script to convert the Scientific notation in the selected area to number
- How can I limit the number of dropdown entries in a column in Google Sheets
- Parse tag in html via Google Sheets (importxml)
- Why is the background color of my google sheet web app not being applied?
- Google Sheets script that automatically locks a sheet 24 hours after a cell is edited
- My Google Sheets formulas mysteriously break as time passes, fix themselves when refreshed
Related Questions in WEB-SCRAPING
- Using Puppeteer to scrape a public API only when the data changes
- Scraping information in a span located under nested span
- How to scrape website which loads json content dynamically?
- How can I find a button element and click on it?
- WebScraping doesnt work, even without error
- Need Help Extracting Redirect URL from a div Element with Specific Class Name in Python Selenium
- beautifulsoup library not showing below #document data inside iframe tag in python
- how to create robust scraper for specific website without updating code after develop?
- Optimizing Selenium script for faster execution
- Parse Dynamic Power BI table with selenium
- How to extract table from webpage that requires click/toggle?
- SSL Certificate Verification Error When Scraping Website and Inserting Data into MongoDB
- Scraping all links using BeautifulSoup
- How do I make it so all arrays are the same length?
- I am getting 'NoneType object is not subscriptable' error in web scraping method
Related Questions in GOOGLE-SHEETS-FORMULA
- Find a value in a range of cells (multiple rows and columns)
- Create date column based on range
- Look up a value using month of the date
- Data recovery based on other data
- On Google Sheets (and only built-in functions allowed, no Google Apps Script) Is it possible to simulate pipe function?
- Google Sheets script that automatically locks a sheet 24 hours after a cell is edited
- How to list empty count in query
- Math's & Excel formula to calculate the interest rate from the EMI and principal amount?
- Add another criteria to a Google Sheet formula
- Google Sheet Delete a Row Every time value of Column Disappear With Appscript
- Sort Data in Google Sheets
- How to reference a cell with specifying some offset row where it should be shown
- Google Sheet - Transpose with Query or ArrayFormula?
- Filter blanks from Xlookup search key range
- Google Sheets - How to transform table data
Related Questions in YAHOO-FINANCE
- How to configure Cumulative Dividend Reinvestment with an initial Value
- SSL Certificate Verify Failed - Yahoo Finance API - Python
- Problem with scrapping a large list of stock data from Yahoo finance
- Yahoo Finance web scraping - Financials tables
- Scrapping yahoo finance with data on several pages
- Error from pulling data from Yahoo Finance
- How to access all the holdings in an ETF with yahooquery?
- My Google Sheets apps script that pulls stock options data from Yahoo Finance has worked perfectly until a few weeks back, now throws a DNS error
- Python yahoo finance scraping stocks all work but one
- Unable to run code in react yahoo finance 2 package
- yfinance not finding ticker closing price
- Get yahoo finance ticker only with approximate company name
- Yahoo Finance API get_quote_table not working
- Why is Yfinance library for months not working?
- Trying to run an Intraday Chart from Yahoo that runs and updates every 5 minutes Mondays through Fridays
Related Questions in XPATHQUERY
- How to delete all nodes from DOMDocument except custom ones?
- Warning: DOMXPath::query() does not accept the syntax
- xpath query multiple conditions
- xpath check if specified value exists at least once in each subelement
- xpath query to check if all xml element have same value
- XPath query for change structure of xml document
- Combining 2 XPath Queries [@attribute and last()]
- Google Sheets ImportXML returns "Resource at URL not found" error
- Is using OPENXML() the best way to transform data in an XML Column to Rows and Columns?
- How to check Xml Element's Attribute Value in SQL
- Importxml function (googlesheets) not working for Skillshare website?
- Xidel: How to choose only 1 from many same value/class and remove unneeded elements from the result?
- GoogleSheet: IMPORTXML error, resource at url not found?
- xpath query ingore <br>| <br/> and <hr>
- How to declare array in xpath query using oracle
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
As explained here, the content of yahoo web site is built dynamically by the mean of javascript. https://webapps.stackexchange.com/questions/115664/how-to-know-if-google-sheets-importdata-importfeed-importhtml-or-importxml-fun Nevertheless, the source contains all the elements in a json string called root.App.main . This json is far too big to be explored here, but we can take a slice, for example:
The problem then is to explore the json as needed. I have performed a small test here https://docs.google.com/spreadsheets/d/1EfHtFr51cJdR6PK2E8cDtMAmUHJNQcOPeOs_6j0GZZc/edit?usp=sharing