Modulo para interagir no forum IGNboards+
Project description
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...
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
igninterage-1.2.1.tar.gz
(6.7 kB
view details)
Built Distribution
File details
Details for the file igninterage-1.2.1.tar.gz
.
File metadata
- Download URL: igninterage-1.2.1.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b315c2fb8239ea6e9c1191871b4cc89ddbcd23d554088394906fd67d85f25efa |
|
MD5 | 6de2bea9c12ed642f77593eb86ecaa65 |
|
BLAKE2b-256 | d58a04053109ae7f42af21d2ff852af39bb4a06e00a195892f1530c49af5e557 |
File details
Details for the file igninterage-1.2.1-py3-none-any.whl
.
File metadata
- Download URL: igninterage-1.2.1-py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c75a11b0eff5eb8f11acf3741e07d5de0580f565020d1f0d53432ce8a5983f9 |
|
MD5 | 18c6056ee3a1760b1dbdfef955b2bb77 |
|
BLAKE2b-256 | a7de289615e2402539cac0c1b2878e0c40e0ee94ee987d8baee3646caf35f0e4 |