全部搜尋項
trixie  ] [  sid  ]
[ 原始碼: arsenic  ]

套件:python3-arsenic(21.8-2)

python3-arsenic 的相關連結

Screenshot

Debian 的資源:

下載原始碼套件 arsenic

維護者:

外部的資源:

相似套件:

Asynchronous WebDriver client

Asynchronous webdriver client built on asyncio.

Let's run a local Firefox instance.

from arsenic import get_session from arsenic.browsers import Firefox from arsenic.services import Geckodriver

. async def example():

    # Runs geckodriver and starts a firefox session
    async with get_session(Geckodriver(), Firefox()) as session:
          # go to example.com
          await session.get('http://example.com')
          # wait up to 5 seconds to get the h1 element from the page
          h1 = await session.wait_for_element(5, 'h1')
          # print the text of the h1 element
          print(await h1.get_text())

Alternatively also other drivers can be run, e.g. Chromedriver or MSEdgeDriver

其他與 python3-arsenic 有關的套件

  • 依賴
  • 推薦
  • 建議
  • 增強

下載 python3-arsenic

下載可用於所有硬體架構的
硬體架構 套件大小 安裝後大小 檔案
all 15。3 kB78。0 kB [檔案列表]