API para obtener articulos de la pagina oficial de la UNI Nicaragua
Project description
UNIngPy, un API sobre articulos de uni.edu.ni
Descripcion
UNIngPy es un package de python que extrae los articulos oficiales de http://archivodenoticias.uni.edu.ni/Articulo/ Fue desarrollado con la intencion de ayudar a la facil extraccion de informacion de la pagina de la UNI-Nicaragua.
Requisitos
- Python =< 2.7 o 3.7:
- Beautifulsoup4 =< 4.9.0
- Requests =< 2.23.0
Instalacion con Pip
pip install UNIngPy
Uso
>>>from UNIngPy import uniarticles
>>>arts = int(input('Cuantos articulos desea ver? '))
>>>if __name__ == "__main__":
... res = uniarticles(True).search(arts)
...
... for entry in res:
... print((Fore.RED + "Titulo:" + Style.RESET_ALL + "{title}".format(**entry)))
... print((Fore.RED + "Fecha de publicacion:" + Style.RESET_ALL + "{date}".format(**e...ntry)))...
... print((Fore.RED + "Contenido:" + Style.RESET_ALL + "{preview}".format(**entry)))
... print((Fore.RED + "Leer completo:" +Style.RESET_ALL+" {redirect}\n".format(**entry)))
Con el ejemplo anterior podrán obtener los detalles exactos de los articulos, para usarlos individualmente o en conjunto.
El ejemplo lo pueden encontrar en la carpeta tests, por si desean ojearlo.
Contribución
El desarrollo del proyecto se lleva a cabo en github, https://github.com/MrH0wl/UNIngPy,
abra un problema allí para informar errores o sugerir mejoras.La colaboración es muy bienvenida, solo bifurca(fork) el proyecto en github y envía pull request al repositorio principal.
Licencia
UNIngPy se publica bajo la licencia GNU General Public License v3. Mira en LICENCIA para mas detalle.
Desarrolladores
Autor:
👤 Jackson Blandon
Lista de contribudores: https://github.com/MrH0wl/UNIngPy/graphs/contributors
Soporte
Si crees que encontraste un bug o tienes problemas con la instalacion, abre un ticket en GitHub: https://github.com/MrH0wl/UNIngPy/issues
— ❤️ —
Drylabs maintains dry-python and helps those who want to use it inside their organizations.
Read more at drylabs.io
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 Distributions
Built Distributions
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 UNIngPy-0.4.11-py3-none-any.whl.
File metadata
- Download URL: UNIngPy-0.4.11-py3-none-any.whl
- Upload date:
- Size: 17.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/2.7.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a7669db23bd24425aec385663501be0c10be4064fcf738f8cf0b3371ed5b1c7b
|
|
| MD5 |
df1e11ee2e3cf203c43b1244ca94bb9e
|
|
| BLAKE2b-256 |
1c1406af4690b919ff4eaa54e51275ba1f440d6f833b7d5df305f92cfbd5110c
|
File details
Details for the file UNIngPy-0.4.11-py2-none-any.whl.
File metadata
- Download URL: UNIngPy-0.4.11-py2-none-any.whl
- Upload date:
- Size: 17.1 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/2.7.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ead37160f4511394138f855aac39cb895d6b8d8b704c6c83683b2cb66ffd01d2
|
|
| MD5 |
d7e692c473b9d0a14c72e1704598a8ed
|
|
| BLAKE2b-256 |
f8fa8be5620f4f5829e56b5bfb5788bf1aa9d6a9ac484767624e4576aadda3c5
|