久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

  • <i id='iIOR3'><tr id='iIOR3'><dt id='iIOR3'><q id='iIOR3'><span id='iIOR3'><b id='iIOR3'><form id='iIOR3'><ins id='iIOR3'></ins><ul id='iIOR3'></ul><sub id='iIOR3'></sub></form><legend id='iIOR3'></legend><bdo id='iIOR3'><pre id='iIOR3'><center id='iIOR3'></center></pre></bdo></b><th id='iIOR3'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='iIOR3'><tfoot id='iIOR3'></tfoot><dl id='iIOR3'><fieldset id='iIOR3'></fieldset></dl></div>

      <tfoot id='iIOR3'></tfoot>

      <small id='iIOR3'></small><noframes id='iIOR3'>

      <legend id='iIOR3'><style id='iIOR3'><dir id='iIOR3'><q id='iIOR3'></q></dir></style></legend>
        • <bdo id='iIOR3'></bdo><ul id='iIOR3'></ul>

        使用 chromedriver &amp; 創建 Python 可執行文件硒

        Create a Python executable with chromedriver amp; Selenium(使用 chromedriver amp; 創建 Python 可執行文件硒)
          <tbody id='BORmt'></tbody>

        <tfoot id='BORmt'></tfoot>

      1. <i id='BORmt'><tr id='BORmt'><dt id='BORmt'><q id='BORmt'><span id='BORmt'><b id='BORmt'><form id='BORmt'><ins id='BORmt'></ins><ul id='BORmt'></ul><sub id='BORmt'></sub></form><legend id='BORmt'></legend><bdo id='BORmt'><pre id='BORmt'><center id='BORmt'></center></pre></bdo></b><th id='BORmt'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='BORmt'><tfoot id='BORmt'></tfoot><dl id='BORmt'><fieldset id='BORmt'></fieldset></dl></div>

            • <legend id='BORmt'><style id='BORmt'><dir id='BORmt'><q id='BORmt'></q></dir></style></legend>
            • <small id='BORmt'></small><noframes id='BORmt'>

                <bdo id='BORmt'></bdo><ul id='BORmt'></ul>
                • 本文介紹了使用 chromedriver &amp; 創建 Python 可執行文件硒的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我使用 Selenium & 創建了一個小型網絡抓取應用程序.chromedriver 用于將內容輸出到 excel 文件的項目.不幸的是,我為這個應用程序開發的人并不是最精通技術的人.

                  所以我的問題是如何與這些人分享這個應用程序?

                  我查看了 py2exe.org,但它在創建可執行文件時沒有考慮到 chromedriver.有沒有更好的方法來做到這一點,而這些人不必手動將文件添加到他們的usr/bin"?

                  解決方案

                  你可以在 pyinstaller 的幫助下做到這一點

                  a> :以下是適用于 Windows 的解決方案,但 pyinstaller 表示它也可以在 Mac OS 上運行.

                  步驟是:

                  1. 打開命令提示符
                  2. 轉到 cmd 中存在腳本的項目路徑
                  3. 鍵入 pyinstaller Scriptname.spec Scriptname.py(如果屏幕上出現提示,請輸入 y/yes)
                  4. 構建將位于項目路徑"distScriptname

                  注意,傳遞時需要在Scriptname.spec中提供chromedriver的詳細信息

                  spec 文件的示例內容:

                  # -*- 模式:python -*-block_cipher = 無a = 分析(['Scriptname.py'],pathex=['Pathofproject'],二進制文件=[('C:\Python27\chromedriver.exe', '**.\selenium\webdriver**')],數據=[],隱藏進口=[],鉤子路徑=[],runtime_hooks=[],排除=[],win_no_prefer_redirects=假,win_private_assemblies=假,密碼=塊密碼)pyz = PYZ(a.pure, a.zipped_data,密碼=塊密碼)exe = EXE(pyz,a.腳本,exclude_binaries=真,name='createEVIPorg_Automation_new',調試=假,條=假,upx=真,控制臺=真)科爾=收集(exe,a.二進制文件,a.zip 文件,a.數據,條=假,upx=真,name='**腳本名**')

                  您需要更新腳本名稱、腳本所在的項目路徑、spec 文件中 chromedriver 的路徑

                  I have created a small web scraping app using Selenium & chromedriver for a project that outputs the content into an excel file. The people I did this app for unfortunately aren't the most tech-savvy.

                  So my question is how can I share this app with these people?

                  I looked into py2exe.org, but it doesn't take the chromedriver into account when creating the executable. Any better ways of doing this, without these people having to add the files manually to their "usr/bin"?

                  解決方案

                  You can do this with the help of pyinstaller : Below is the solution which work on Windows but pyinstaller says its capable of working on Mac OS also.

                  Steps are:

                  1. Open Command prompt
                  2. Goto project path in cmd where script is present
                  3. type pyinstaller Scriptname.spec Scriptname.py (Enter y/yes if prompt on screen)
                  4. The build will be at 'path to project'distScriptname

                  Note you need to provide the details of chromedriver in Scriptname.spec when passing the

                  Sample content of spec file:

                  # -*- mode: python -*-
                  
                  block_cipher = None
                  
                  
                  a = Analysis(['Scriptname.py'],
                               pathex=['Pathofproject'],
                               binaries=[('C:\Python27\chromedriver.exe', '**.\selenium\webdriver**')],
                               datas=[],
                               hiddenimports=[],
                               hookspath=[],
                               runtime_hooks=[],
                               excludes=[],
                               win_no_prefer_redirects=False,
                               win_private_assemblies=False,
                               cipher=block_cipher)
                  pyz = PYZ(a.pure, a.zipped_data,
                               cipher=block_cipher)
                  exe = EXE(pyz,
                            a.scripts,
                            exclude_binaries=True,
                            name='createEVIPOrg_Automation_new',
                            debug=False,
                            strip=False,
                            upx=True,
                            console=True )
                  coll = COLLECT(exe,
                                 a.binaries,
                                 a.zipfiles,
                                 a.datas,
                                 strip=False,
                                 upx=True,
                                 name='**scriptname**')
                  

                  You need to update the Scriptname, project path where you script lies, path of chromedriver in spec file

                  這篇關于使用 chromedriver &amp; 創建 Python 可執行文件硒的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  How to make a discord bot that gives roles in Python?(如何制作一個在 Python 中提供角色的不和諧機器人?)
                  Discord bot isn#39;t responding to commands(Discord 機器人沒有響應命令)
                  Can you Get the quot;About mequot; feature on Discord bot#39;s? (Discord.py)(你能得到“關于我嗎?Discord 機器人的功能?(不和諧.py))
                  message.channel.id Discord PY(message.channel.id Discord PY)
                  How do I host my discord.py bot on heroku?(如何在 heroku 上托管我的 discord.py 機器人?)
                  discord.py - Automaticaly Change an Role Color(discord.py - 自動更改角色顏色)
                    <tbody id='Nuayo'></tbody>
                  1. <small id='Nuayo'></small><noframes id='Nuayo'>

                  2. <tfoot id='Nuayo'></tfoot>
                      <bdo id='Nuayo'></bdo><ul id='Nuayo'></ul>
                    • <i id='Nuayo'><tr id='Nuayo'><dt id='Nuayo'><q id='Nuayo'><span id='Nuayo'><b id='Nuayo'><form id='Nuayo'><ins id='Nuayo'></ins><ul id='Nuayo'></ul><sub id='Nuayo'></sub></form><legend id='Nuayo'></legend><bdo id='Nuayo'><pre id='Nuayo'><center id='Nuayo'></center></pre></bdo></b><th id='Nuayo'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='Nuayo'><tfoot id='Nuayo'></tfoot><dl id='Nuayo'><fieldset id='Nuayo'></fieldset></dl></div>
                      • <legend id='Nuayo'><style id='Nuayo'><dir id='Nuayo'><q id='Nuayo'></q></dir></style></legend>
                          主站蜘蛛池模板: 黄色在线免费观看视频 | 国产精品国产三级国产aⅴ中文 | 91久久久精品国产一区二区蜜臀 | 91精品国产91久久久久久吃药 | 日韩毛片中文字幕 | 91免费在线看 | 欧美久久久久久久久 | 综合久久亚洲 | 久久亚洲国产精品日日av夜夜 | 男女啪啪高潮无遮挡免费动态 | 精品无码久久久久国产 | 日本天天操| 中文字幕久久精品 | 久久久久久亚洲精品 | 免费在线黄色av | 精品二区| 国产福利在线 | 激情五月婷婷丁香 | 北条麻妃一区二区三区在线观看 | 精品熟人一区二区三区四区 | 日日骚视频 | 成人在线免费观看视频 | 草草草草视频 | 在线视频亚洲 | 亚洲精品久久久久久国产精华液 | 午夜视频在线观看网址 | 欧美日韩久久久 | 日本特黄a级高清免费大片 特黄色一级毛片 | 在线一区 | 国产精品国产 | 天堂av免费观看 | 精品国产欧美日韩不卡在线观看 | 99re热精品视频 | 国产在线1区 | 国产精品免费播放 | 黄网免费看 | 国产精品一区二区在线播放 | 2023亚洲天堂 | 搞黄网站在线观看 | 午夜私人影院 | 亚洲欧美日本在线 |