Skip to main content

No project description provided

Project description

Selenium Killer

Introdução

O Selenium Killer é uma biblioteca que permite usar o httpx para realizar requisições e capturar os dados de um site. Assim você pode usar a biblioteca para automatizar tarefas como:

  • Capturar os dados de um site
  • Realizar requisições POST
  • Realizar requisições GET
  • Enviar formulários

Ele surge como uma necessidade de automação, pois abrir navegador é um processo caro e demorado.

O Selenium Killer não tem renderização por javascript. Logo para tarefas que exigem interação por javascript, você deve usar o Selenium ou alguma biblioteca parecida.

Como Usar

O coração do Selenium Killer é a classe SeleniumKiller que contém as funções get, post e forms.

Exemplos

Importar e instanciar

from selenium_killer.killer import SeleniumKiller
killer = SeleniumKiller()

A selenium killer é baseada no padrão factory pattern. Sempre retornando uma nova instancia do mesmo objeto.

Exemplo de uso

killer = SeleniumKiller()
killer.get('https://google.com')
killer.forms
killer.post('https://google.com')

Uso

Vamos fazer um requisição para o site https://google.com e capturar os dados de um formulário:

killer = SeleniumKiller()
await killer.get('https://google.com')
forms = killer.forms
forms[0].submit()
forms[0].fields

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

selenium_form_killer-0.1.6.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

selenium_form_killer-0.1.6-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file selenium_form_killer-0.1.6.tar.gz.

File metadata

  • Download URL: selenium_form_killer-0.1.6.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.10.12 Linux/6.6.10-76060610-generic

File hashes

Hashes for selenium_form_killer-0.1.6.tar.gz
Algorithm Hash digest
SHA256 5330df59da4da3c4d35aeaa95e49c63f001280835e28b194dd0a467c42f89d4f
MD5 59189afafa98df76656dedae4fbc5f1d
BLAKE2b-256 eb9fd658ef7c5933cb961bd06623c78f8563a887a9c867f5e395f1b987a5d5cb

See more details on using hashes here.

File details

Details for the file selenium_form_killer-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: selenium_form_killer-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.10.12 Linux/6.6.10-76060610-generic

File hashes

Hashes for selenium_form_killer-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 4d122d41f6b3a7487748a157db8d0964197f35442147fe47baf422387f04e238
MD5 a51ded14d3a49c3f5e3bbe889138c09f
BLAKE2b-256 08de8be83b2fcf93a0f549a9d6fa5d087b567e4279355c590a181d89e4a48912

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page