官术网_书友最值得收藏!

How it works

The primary difference in this recipe is the following code:

driver = webdriver.Firefox()
driver.get(url)

This gets the Firefox driver and uses it to get the content of the specified URL.  This works by starting Firefox and automating it to go the the page, and then Firefox returns the page content to our app.  This is why Firefox popped up.  The other difference is that to find things we need to call find_element_by_xpath to search the resulting HTML.

主站蜘蛛池模板: 伊吾县| 大足县| 松潘县| 阿克苏市| 武乡县| 车险| 永新县| 富锦市| 定日县| 金湖县| 济阳县| 恭城| 昂仁县| 方山县| 望谟县| 巢湖市| 三原县| 鞍山市| 喀喇| 彭阳县| 吉林省| 阿勒泰市| 昌黎县| 林西县| 肃北| 成安县| 新晃| 平南县| 江安县| 辽宁省| 来安县| 藁城市| 新巴尔虎左旗| 宝应县| 海淀区| 宜昌市| 中阳县| 沂南县| 荃湾区| 吉水县| 云安县|