<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                # 1.2.5 PhantomJS的安裝 PhantomJS是一個無界面的瀏覽器. selenium支持PhantomJS,這樣在運行的時候就不會彈出一個瀏覽器 ## 1.相關鏈接 * 官網網站:[http://phantomjs.org/](http://phantomjs.org/) * 官方文檔:[http://phantomjs.org/quick-start.html](http://phantomjs.org/quick-start.html) * 下載地址:[http://phantomjs.org/download.html](http://phantomjs.org/download.html) * API接口說明:[http://phantomjs.org/api/command-line.html](http://phantomjs.org/api/command-line.html) ## 2.下載PhantomJS ![](https://box.kancloud.cn/7f1e90d3b80a6f8716b6c853c0ce6096_801x541.png)配置環境和前面一樣 ## 3.驗證安裝 在命令行下輸入PhantomJS命令進行驗證有類似結果輸出就代表配置環境成功 ![](https://box.kancloud.cn/c1ed9f5f24f2fddcf166e73655c786ac_428x150.png) 然后在程序中測試 ```text from selenium import webdriver browser = webdriver.PhantomJS() browser.get('https://www.baidu.com') print(browser.current_url) ``` 運行后會發現沒有瀏覽器打開,但實際上phantomjs已經運行起來了![](https://box.kancloud.cn/3ec0bb25f0a9ec8b4fca453d473a2fa2_1788x186.png)這里訪問了百度,如果將當前url打印出來了就代表PhantomJS配置成功了
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看