Una librería para realizar acciones en Taringa.net
#Requerimientos
* Python2
* requests
Para instalar en su proyecto:
```bash
pip install pytaringa
```
##Ejemplo
Todos los ejemplos tienen el siguiente encabezado
```python
# -*- coding: utf-8 -*-
import time
import sys
from pytaringa import Taringa, Shout, Kn3
if __name__ == '__main__':
username = "USERNAME"
password = "PASSWORD"
taringa = Taringa(username,password)
shout = Shout(taringa.cookie)
print taringa.username
print taringa.password
print taringa.user_key
print taringa.user_id
print taringa.cookie
#Crear un shout
print shout.add("Hola a todos")
time.sleep(10)
#Crear un shout con una imagen
print shout.add("#PyT ImageShout",1,0,Kn3.import_to_kn3("http://traduccionesyedra.files.wordpress.com/2012/04/testing.jpg"))
#Obtener el id de un usuario
print taringa.get_user_id_from_nick("anpep")
#Dar like a un shout
print shout.like("50735408","19963011")
#Eliminar un shout
print shout.delete("50735241")
#Obtener los datos de un shout
print shout.get_object("47420358")["body"]
#Obtener el último shout de un usuario
lastShout = shout.get_last_shout_from_id("19963011")
print lastShout
print shout.get_object(lastShout)["body"]
#Importar una imagen a kn3
print Kn3.import_to_kn3("http://conociendogithub.readthedocs.org/en/latest/_images/GitHub.png")
```
Todos los ejemplos están en el archivo `examples/test.py`
Para probar ejecuta:
USERNAME=taringo PASSWORD=shalala python -m pytaringa.examples.test
##TODO
* Comentar el código
* Añadir funcionalidades para los post
Metadata
Release files for pytaringa 0.1.4
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 |
|---|---|---|---|---|
| pytaringa-0.1.4.tar.gz | 17.5 kB | Without provenance | Details for pytaringa-0.1.4.tar.gz |
Release files / pytaringa-0.1.4.tar.gz
| Download URL | pytaringa-0.1.4.tar.gz |
|---|---|
| Size | 17.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9e7ea8ff38e35c2dc26778f39b68445ec51720e2a38ccc14e8fd428ff45875ba
|
|
BLAKE2b-256 checksum How to use checksums |
2ff2d48c0db26c21f66f215e635e3f2fb3d3501004eb46088f0b3f18c76cfcf7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pytaringa 0.1.4
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.