Acesse seus investimentos da NuInvest pelo Python (Experimental)

Overview

pynuinvest

Acesse seus investimentos da NuInvest pelo Python (Experimental)

Instalando

pip install git+https://github.com/andreroggeri/pynuinvest.git

Contornando o Cloudflare

A NuInvest utiliza o Cloudflare para evitar ataques e acessos não autorizados.

Para contornar isso utilizamos o FlareSolverr para resolver os desafios.

Inicializando o FlareSolverr

Basta iniciar uma instancia utilizando docker:

docker run -d --rm -p 8191:8191 andreroggeri/flaresolverr

Após isso ele estará executando e acessível localmente na porta 8191

Autenticando

Antes de obter os dados de investimentos é necessário autenticar.

from pynuinvest import NuInvest

nu = NuInvest()
# uid pode ser gerado com o módulo uuid.
# Se ele for reutilizado é possível autenticar sem o easytoken depois do primeiro login
nu.authenticate('CPF sem pontos', 'senha', 'uid', 'codigo easytoken')

Obtendo as informações dos investimentos

from pynuinvest import NuInvest

nu = NuInvest()
# Exemplo acima de como utilizar
# nu.authenticate()
investment_data = nu.get_investment_data()

# Printa dicionário contendo os dados de todos os investimentos
print(investment_data)
You might also like...
Python with braces. Because Python is awesome, but whitespace is awful.

Bython Python with braces. Because Python is awesome, but whitespace is awful. Bython is a Python preprosessor which translates curly brackets into in

PSP (Python Starter Package) is meant for those who want to start coding in python but are new to the coding scene.

Python Starter Package PSP (Python Starter Package) is meant for those who want to start coding in python, but are new to the coding scene. We include

Py-Parser est un parser de code python en python encore en plien dévlopement.

PY - PARSER Py-Parser est un parser de code python en python encore en plien dévlopement. Une fois achevé, il servira a de nombreux projets comme glad

Simple, high-school-leveled sequence library written in Python / 간단한 고등학교 수준 수열 라이브러리 (Python)
A community based economy bot with python works only with python 3.7.8 as web3 requires cytoolz

A community based economy bot with python works only with python 3.7.8 as web3 requires cytoolz has some issues building with python 3.10

A python script based on OpenCV-Python, you can automatically hang up the Destiny 2 Throne to get the Dawning  Essence.
A python script based on OpenCV-Python, you can automatically hang up the Destiny 2 Throne to get the Dawning Essence.

A python script based on OpenCV-Python, you can automatically hang up the Destiny 2 Throne to get the Dawning Essence.

Run python scripts and pass data between multiple python and node processes using this npm module

Run python scripts and pass data between multiple python and node processes using this npm module. process-communication has a event based architecture for interacting with python data and errors inside nodejs.

inverted pendulum fuzzy control python code (python 2.7.18)
inverted pendulum fuzzy control python code (python 2.7.18)

inverted-pendulum-fuzzy-control- inverted pendulum fuzzy control python code (python 2.7.18) We have 3 general functions for 3 main steps: fuzzificati

Izy - Python functions and classes that make python even easier than it is

izy Python functions and classes that make it even easier! You will wonder why t

Comments
  • Dúvidas: imagem docker do Flaresolverr

    Dúvidas: imagem docker do Flaresolverr

    E ai cara! Blz?

    Tentei rodar seu projeto utilizando uma imagem nativa do Flaresolverr, porém não funcionou. A única que funcionou foi a sua hospedada no Docker Hub (achei bem por acaso, confesso).

    Gostaria de entender contigo quais alterações você fez na sua imagem, se puder explicar ficarei muito agradecido.

    Abs!

    question 
    opened by xStarl0rd 2
Owner
André Roggeri Campos
André Roggeri Campos
Experimental Brawl Stars v36.218 server emulator written in Python.

Brawl Stars v36 Experimental Brawl Stars v36.218 server emulator written in Python. Requirements: Python 3.7 or higher colorama Running the server In

null 8 Oct 31, 2021
IOP Support for Python (Experimental)

TAGS Experimental IOP Framework for Python WARNING: Currently, this project has NO EXCEPTION HANDLING. USE AT YOUR OWN RISK! I. Introduction to Interf

null 1 Oct 22, 2021
Experimental proxy for dumping the unencrypted packet data from Brawl Stars (WIP)

Brawl Stars Proxy Experimental proxy for version 39.99 of Brawl Stars. It allows you to capture the packets being sent between the Brawl Stars client

null 4 Oct 29, 2021
Verification of Monty Hall problem by experimental simulation.

Verification of Monty Hall problem by experimental simulation. |中文|English| In the process of learning causal inference, I learned about the Monty Hal

云端听茗 1 Nov 22, 2022
Webcash is an experimental e-cash (electronic cash)

Webcash Webcash is an experimental new electronic cash ("e-cash") that enables decentralized and instant payments to anyone, anywhere in the world. Us

Mark Friedenbach 0 Feb 26, 2022
Todos os exercícios do Curso de Python, do canal Curso em Vídeo, resolvidos em Python, Javascript, Java, C++, C# e mais...

Exercícios - CeV Oferecido por Linguagens utilizadas atualmente O que vai encontrar aqui? ?? Esse repositório é dedicado a armazenar todos os enunciad

Coding in Community 43 Nov 10, 2022
PyDy, short for Python Dynamics, is a tool kit written in the Python

PyDy, short for Python Dynamics, is a tool kit written in the Python programming language that utilizes an array of scientific programs to enable the study of multibody dynamics. The goal is to have a modular framework and eventually a physics abstraction layer which utilizes a variety of backends that can provide the user with their desired workflow

PyDy 307 Jan 1, 2023
A Python script made for the Python Discord Pixels event.

Python Discord Pixels A Python script made for the Python Discord Pixels event. Usage Create an image.png RGBA image with your pattern. Transparent pi

Stanisław Jelnicki 4 Mar 23, 2022
this is a basic python project that I made using python

this is a basic python project that I made using python. This project is only for practice because my python skills are still newbie.

Elvira Firmansyah 2 Dec 14, 2022
Analisador de strings feito em Python // String parser made in Python

Este é um analisador feito em Python, neste programa, estou estudando funções e a sua junção com "if's" e dados colocados pelo usuário. Neste código,

Dev Nasser 1 Nov 3, 2021