【问题标题】:How to scrape tables data from chartink website to google sheets如何将表格数据从 chartink 网站抓取到 google 表格
【发布时间】:2023-01-15 21:18:04
【问题描述】:

我想从此链接https://chartink.com/screener/copy-orb-5min-6 中抓取表格数据并将表格数据显示到我的谷歌表格中。看我附上的img

我正在使用 =importxml("https://chartink.com/screener/copy-orb-5min-6", "table", 1) 但没有获取数据 IMG

【问题讨论】:

  • 在语法方面,您使用的公式应该是 =importhtml("https://chartink.com/screener/copy-orb-5min-6", "table", 1) 或 =importxml("https://chartink.com/screener/copy-orb-5min-6", "//body") 但在这种情况下,任何导入 fx(importxml、importhtml、importdata)都无法访问表

标签: google-sheets web-scraping


【解决方案1】:

Chartink 结果在发送请求到 chartink 时填充。如果您尝试直接读取 HTML,该表将不可用。在我尝试过的事情中,只有通过 selenium 呈现页面并使用 requests 向页面发送发布请求才有效。

【讨论】:

    猜你喜欢
    • 2023-01-02
    • 2023-01-02
    • 2018-10-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多