Python中的Selenium(Webdriver)并不返回googleadwords pag中的所有链接

2024-09-28 23:18:05 发布

您现在位置:Python中文网/ 问答频道 /正文

我使用selenium的webdriver从googleadwords下载报告。问题是,似乎webdriver并没有返回页面中的所有链接。如所附照片所示,当我获得pagesource时,只返回leftside中的链接。我需要单击“立即运行”链接,在HTML中如下所示:

<a href="#" onclick="return false;" actionid="runNow" style="white-space:nowrap">Run now</a>

如有任何评论,我们将不胜感激。 Google AdWords Report using Python (Selenium and webdriver)

以下是我目前编写的代码:

^{pr2}$

Tags: falsereturn链接html报告selenium页面照片