Metadata-Version: 2.4
Name: chibi_browser
Version: 1.0.0
Summary: Capa para controlar selenium para chibi_ste
Home-page: https://github.com/dem4ply/chibi_browser
Author: dem4ply
Author-email: dem4ply@gmail.com
License: WTFPL
Keywords: chibi_browser
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: Public Domain
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
License-File: LICENSE
License-File: AUTHORS.rst
Requires-Dist: chibi_site>=0.1.1
Requires-Dist: selenium>=4.41
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: license-file
Dynamic: requires-dist
Dynamic: summary

=============
chibi_browser
=============


.. image:: https://img.shields.io/pypi/v/chibi_browser.svg
        :target: https://pypi.python.org/pypi/chibi_browser

.. image:: https://readthedocs.org/projects/chibi-browser/badge/?version=latest
        :target: https://chibi-browser.readthedocs.io/en/latest/?badge=latest
        :alt: Documentation Status

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

.. code-block:: python

	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.0.0 (2026-03-01)
******************

* primera version funcional para controlar selenium

******************
0.0.1 (2026-02-28)
******************

* First release on PyPI.
