alle opties
trixie  ] [  sid  ]
[ Bron: arsenic  ]

Pakket: python3-arsenic (21.8-2)

Verwijzigingen voor python3-arsenic

Screenshot

Debian bronnen:

Het bronpakket arsenic downloaden:

Beheerder:

Externe bronnen:

Vergelijkbare pakketten:

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

Andere aan python3-arsenic gerelateerde pakketten

  • depends
  • recommends
  • suggests
  • enhances

python3-arsenic downloaden

Pakket downloaden voor alle beschikbare platforms
Platform Pakketgrootte Geïnstalleerde grootte Bestanden
all 15,3 kB78,0 kB [overzicht]