Capa para controlar selenium para chibi_ste
Project description
chibi_browser
Libreria para controllar selenium para mejorar la legibilidad en otros scripts
Free software: WTFPL
Documentation: https://chibi-browser.readthedocs.io.
uso basico
Chibi_browser
Preparar una nueva instancia y usarla para navegar y descargar archivos
from chibi_browser import Chibi_browser
harvest_moon_rom = Chibi_browser(
'https://archive.org/details/harvest-moon-ranch-master',
download_folder=Chibi_temp_path() )
links = harvest_moon_rom.select( "div.show-all a.boxy-ttl" )
# buscar el link con el texto "show all" y clickear el boton
for link in links:
if link.text.lower().strip() == 'show all':
link.click()
break
# esperar a que cambie la pagina y este visible la tabla de contenido
harvest_moon_rom.wait( 10 ).until(
wait_conditions.element.visible.select(
"table.directory-listing-table" ) )
# buscar el archivo torrent y hacerle click para descargarlo
table = harvest_moon_rom.select_one( "table.directory-listing-table" )
files = table.select( 'a' )
for f in files:
if '.torrent' in f.text:
f.click()
# esperar a que se descarge el archivo e imprimir los archivos descargados
time.sleep( 2 )
for f in harvest_moon_rom.download_folder.ls():
print( f )
History
1.1.0 ( 2026-03-19 )
se agrego funciones para comportamiento hummy
se agregaron funciones de espera de elementos
1.0.0 (2026-03-01)
primera version funcional para controlar selenium
0.0.1 (2026-02-28)
First release on PyPI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file chibi_browser-1.1.0.tar.gz.
File metadata
- Download URL: chibi_browser-1.1.0.tar.gz
- Upload date:
- Size: 14.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4daaa7cc49115116bb8fcf3be36a920426994ce60e8ef8ea2dad5d4ec50e1fb7
|
|
| MD5 |
402c761280e6a07c3914e8bcaa4205a0
|
|
| BLAKE2b-256 |
458d40c5e8c831b1cd0a2133ead24da2616a5f57113c409ea82f916389f33b68
|
File details
Details for the file chibi_browser-1.1.0-py2.py3-none-any.whl.
File metadata
- Download URL: chibi_browser-1.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
efb38d962e7e2bf7245be9abf6fab23ebffec0515c65b838bdacae911768ec96
|
|
| MD5 |
fd240051b24987d7886684ecf51dcfae
|
|
| BLAKE2b-256 |
32312742808044e33eeac95aa51ea717d3f223259d2e25e9413e9b49991cdccb
|