简体   繁体   English

从 Google 表格中的 1 URL 获取所有数据

[英]Fetch All Data from 1 URL in Google Sheet

I used this Formula and fetched only 25 records.我使用这个公式只获取了25条记录。 (1 Page Record) (1 页记录)

=IMPORTHTML("https://www.screener.in/screens/881782/rk-all-stocks/","table")

Total Pages in this URL: - 1 of 170此 URL 中的总页数: - 1,共 170 页

Total Results found in: - 4228找到的总结果:- 4228

https://www.screener.in/screens/881782/rk-all-stocks/ https://www.screener.in/screens/881782/rk-all-stocks/

  • How to Fetch All 170 Pages Records from 1 URL in Google Sheet.如何从 Google Sheet 中的 1 URL 中获取所有170 页记录。

  • I fetch Record like This Serial Number.我获取像 This Serial Number 这样的记录。 1 to 4228. in One Sheet. 1 到 4228. 在一张纸上。

    Serial Number序列号 Name姓名 Percentage百分比
    1 1个 520 520 200 200 110 110 21 21
    2 2个 321 321 541 541 56 56 13 13
    3 3个 1321 1321 232 232 12 12 25 25
    TO
    4228 4228 RK RK RJ RJ RS RS GS GS

i Use this Formula But This formula only fetch 95 Pages not all pages.我使用这个公式但是这个公式只获取 95 页而不是所有页面。 after Error Show is:错误显示后是:

In ARRAY_LITERAL, an Array Literal was missing values for one or more rows.在 ARRAY_LITERAL 中,数组文字缺少一行或多行的值。

=QUERY(REDUCE(INDEX(IMPORTHTML("https://www.screener.in/screens/881782/rk-all-stocks/", "table"), 1), SEQUENCE(95 -N ("number of pages")), LAMBDA(x, y, {x; IFERROR( IMPORTHTML("https://www.screener.in/screens/881782/rk-all-stocks/?limit=25&page="&y, "table"), IFERROR(SEQUENCE(1, 11)/0))})), "where Col1 matches '[0-9]+'", 1) =QUERY(REDUCE(INDEX(IMPORTHTML("https://www.screener.in/screens/881782/rk-all-stocks/", "table"), 1), SEQUENCE(95 -N ("页数")), LAMBDA(x, y, {x; IFERROR( IMPORTHTML("https://www.screener.in/screens/881782/rk-all-stocks/?limit=25&page="&y, "table") , IFERROR(SEQUENCE(1, 11)/0))})), "其中 Col1 匹配 '[0-9]+'", 1)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM