【发布时间】:2020-05-13 23:39:41
【问题描述】:
抓取网站时如何在 Safari 浏览器中点击“阅读器视图”?
网址:https://www.w3resource.com/java-exercises/collection/index.php
我需要一个 python 脚本来单击阅读器视图,然后将所有内容复制到一个文本文件中。
请查看我当前代码的 sn-p:
options = webdriver.ChromeOptions()
driver = webdriver.Chrome('/usr/local/bin/chromedriver', options=options)
url = "https://www.w3resource.com/java-exercises/collection/index.php"
# TODO: Click Reader View.
# Copy all text on Reader View to a string variable.
# Paste string to a text file.
【问题讨论】:
标签: python selenium selenium-chromedriver screen-scraping