最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

IMPORTDATA in Google Sheets where result limit exceeded and constrained function does not contain desired data - Stack Overflow

programmeradmin2浏览0评论

I am trying to import the Market Cap data point from the page into a Google Sheets cell.

IMPORTXML and IMPORTHTML functions previously failed.

The closest I can get so far is by way of contraining an output of some of the page data using the function =ARRAY_CONSTRAIN(IMPORTDATA(";), 1, 300). This function only outputs some of the page data (by way of not exceeding Google Sheets limitations), yet, the output does not contain the desired data point.

Subsequently, I am seeking to import other values from the page, such as data values for Circulating Supply, Alpha in Pool, TAO in Pool, Alpha in Pool (%), TAO in Pool (%), etc. Thusly, a reconfigurable function is sought.

Any practical solution(s) will be greatly appreciated.

I am trying to import the Market Cap data point from the page https://taostats.io/subnets/1/chart into a Google Sheets cell.

IMPORTXML and IMPORTHTML functions previously failed.

The closest I can get so far is by way of contraining an output of some of the page data using the function =ARRAY_CONSTRAIN(IMPORTDATA("https://taostats.io/subnets/1/chart"), 1, 300). This function only outputs some of the page data (by way of not exceeding Google Sheets limitations), yet, the output does not contain the desired data point.

Subsequently, I am seeking to import other values from the page, such as data values for Circulating Supply, Alpha in Pool, TAO in Pool, Alpha in Pool (%), TAO in Pool (%), etc. Thusly, a reconfigurable function is sought.

Any practical solution(s) will be greatly appreciated.

Share Improve this question asked yesterday Jacob IrwinJacob Irwin 1531 silver badge13 bronze badges 1
  • I think you will find that this page is populated dynamically using javascript. You can't extract the values using conventional "import" functions. – Tedinoz Commented yesterday
Add a comment  | 

1 Answer 1

Reset to default 0

Web scraping using Google sheets

After trying different ways to scrape the given website using other ways in Google sheets and even in Google Apps Script, it seems that it is not possible to accomplish your goal by just utilizing Google sheets functions or the website that you are trying to use implements some type of anti-scraping mechanisms. With that, you will need to look for alternatives like using different tools see this or using alternative websites.

Following @Tedinoz comment, it is indeed that the website uses Javascript to render dynamic websites. We can confirm that by disabling JavaScript on the web browser, in my case, Google Chrome. See below

After disabling JavaScript

The image above suggests that the website uses JavaScript to render most of its data which are the data that you are interested in.

References:

Disable JavaScript

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论