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
Metadata
Release files for selenium-form-killer 0.1.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| selenium_form_killer-0.1.11.tar.gz | 9.8 kB | Without provenance | Details for selenium_form_killer-0.1.11.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| selenium_form_killer-0.1.11-py3-none-any.whl | Python 3 | none | any | Details for selenium_form_killer-0.1.11-py3-none-any.whl |
Total release size: 22.5 kB
Release files / selenium_form_killer-0.1.11.tar.gz
| Download URL | selenium_form_killer-0.1.11.tar.gz |
|---|---|
| Size | 9.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
11857fc3e553a1fb17debd136ca96dad2c6661c426538609b661366721b41069
|
|
BLAKE2b-256 checksum How to use checksums |
fb9abe5778b82161942c167af77e5844d0637eab411f18418d9273f902a09eb2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.10.12 Linux/6.9.3-76060903-generic
|
Release files / selenium_form_killer-0.1.11-py3-none-any.whl
| Download URL | selenium_form_killer-0.1.11-py3-none-any.whl |
|---|---|
| Size | 12.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
84ac16c95eb31cf43561e067d4f025139648c2639242f16c56d032279268b388
|
|
BLAKE2b-256 checksum How to use checksums |
2de9e8dc0315cc544cd2de7b357d5fa6ade5ef3ea1a28e7d81c4b8ee8b43054f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.10.12 Linux/6.9.3-76060903-generic
|
Security for selenium-form-killer 0.1.11
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.