inginterage
Modulo para interagir no forum IGN boards, loga usando cookies dos navegadores Firefox (default) e Chrome, cria topico, comenta, edita, react e mensagem privada.
requerimentos
- Navegador Chrome/Firefox
- python >=3.6
instalação
pip install igninterage
ou instale a última versão:
pip install --upgrade https://github.com/psychodinae/igninterage/tarball/master
uso
-
Primeiro realize o login no forum usando o navegador e feche-o.
from igninterage import Igninterage ign = Igninterage('https://www.ignboards.com/') ign.ign_login() ign.novo_topico('teste', 'som som teste', 'vale-tudo.80331/') ign.editar_topico('teste editado', '[edit] ei ei som', '123456789', '17') ign.comentar(text='isso foi postado com a "API" rsrsrsrs', thread='123456789') ign.editar_comentario('[EDITt] e agora foi editado usando a "API"', '123456789') ign.react(react_id='1', post_id='123456789') ign.msg_privada('meu assunto', 'minha conversa', 'NickdoUsuario') ign.msg_privada('meu outro assunto', 'minha outra conversa', 'NickdoUsuario', 'NickdeOutroUsuario') -
uma vez recuperado os cokies usando o navegador é possivel armazena-los no formato json por exemplo:
import json from igninterage import Igninterage ign = Igninterage('https://www.ignboards.com/', navegador='chrome') ign.ign_login() cookies_salvos = json.dumps(ign.get_cookies_as_dict()) > {"xf_user": "4345353535-etertagabayata3665a643634b6b6b6", "xf_csrf": "tetETn54778", "xf_..."} -
Posteriormente:
import json from igninterage import Igninterage ign = Igninterage('https://www.ignboards.com/') ign.set_cookie(json.loads(cookies_salvos)) ign.comentar(text='isso foi postado com a "API" rsrsrsrs', thread='123456789') > logado ok! > postou no topico...
Metadata
Release files for igninterage 1.2.1
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 | |
|---|---|---|---|---|
| igninterage-1.2.1.tar.gz | 6.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| igninterage-1.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.7 kB
Release files / igninterage-1.2.1.tar.gz
| Download URL | igninterage-1.2.1.tar.gz |
|---|---|
| Size | 6.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b315c2fb8239ea6e9c1191871b4cc89ddbcd23d554088394906fd67d85f25efa
|
|
BLAKE2b-256 checksum How to use checksums |
d58a04053109ae7f42af21d2ff852af39bb4a06e00a195892f1530c49af5e557
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.7.9
|
Release files / igninterage-1.2.1-py3-none-any.whl
| Download URL | igninterage-1.2.1-py3-none-any.whl |
|---|---|
| Size | 9.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5c75a11b0eff5eb8f11acf3741e07d5de0580f565020d1f0d53432ce8a5983f9
|
|
BLAKE2b-256 checksum How to use checksums |
a7de289615e2402539cac0c1b2878e0c40e0ee94ee987d8baee3646caf35f0e4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.7.9
|
Security for igninterage 1.2.1
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.