然而,试图通过Power访问PubChem遇到了以下问题:
This application requires Javascript. Please turn on Javascript in order to use this application.
只是想知道是否有人知道为什么会发生这种情况,以及是否有任何解决办法?
对于PubChem来说,这似乎是一个局部问题,但是,我以前通过Power /Query成功地访问了这里的页面。
M码:
let
Source = Web.BrowserContents("https://pubchem.ncbi.nlm.nih.gov/compound/311"),
#"Extracted Table From Html" = Html.Table(Source, {{"Column1", "BODY"}}),
Column1 = #"Extracted Table From Html"[Column1]{0}
in
Column1这里的这个问题似乎也遇到了isue:Selenium Chrome web driver inconsistently executes JS scripts on webpages
发布于 2022-09-20 09:39:13
它正在从后台的API中加载JSON,因此需要JS来加载它。只需直接访问API即可。
let
Source = Json.Document(Web.Contents("https://pubchem.ncbi.nlm.nih.gov/rest/pug_view/data/compound/311/JSON/")),
Record = Source[Record],
Section = Record[Section]
in
Sectionhttps://stackoverflow.com/questions/73784378
复制相似问题