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.1.tar.gz (5.4 kB view details)

Uploaded Source

Built Distributions

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

selenium_form_killer-0.1.1.0-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

selenium_form_killer-0.1.1-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: selenium_form_killer-0.1.1.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.12.2 Windows/11

File hashes

Hashes for selenium_form_killer-0.1.1.tar.gz
Algorithm Hash digest
SHA256 eb2418e1ad29ed391d584358fb80d37e5356455e2ed13439e99c9b9ba2e45dfb
MD5 a1434080d73ce6c1618729cd03e52b12
BLAKE2b-256 27f4c7d1ac7379e82ededb8aaf3ecf854c4675aeb60f10cfe22ecd510fd69d3f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for selenium_form_killer-0.1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b9779ef87a98fa772599ddc281e37f19e4eca102daddec812762bccf78a1268c
MD5 f13e7667a414a62109a0a6e1686dcafa
BLAKE2b-256 443753c87ee8a5f91143d77ff6bbab56f2b02fd4a62edd1ad0dddf3f1a04c4ea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for selenium_form_killer-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b599696854b2f3ef7474603ea5db9d9f853bd93f30913d60acbf7d7194d6db9b
MD5 5ba1ad22565272ed876d2bcec20bca97
BLAKE2b-256 23ae1bebea47a61e42dd8d346d6aed4e3945c507886b5f753cc7e9b35137b65c

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