全部搜索项
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 [文件列表]