Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Por que esse print não funciona? #1

Open
mayconvs opened this issue May 23, 2024 · 2 comments
Open

Por que esse print não funciona? #1

mayconvs opened this issue May 23, 2024 · 2 comments

Comments

@mayconvs
Copy link

Por que quando eu dou esse print não funciona?
print(allmems[0].regiondf.aa_dump_S1)

from time import sleep
import regex as re
import sys, psutil, pymem, subprocess
import numpy as np
from pdmemedit import Pdmemory
from a_pandas_ex_sequence_search import pd_add_find_sequence
import pandas as pd

brave_nome_processo = "brave.exe"
brave_dir = r"C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe"
site_para_raspar = "https://www.bet365.com/#/IP/B1"

bravebro = subprocess.Popen(
    [
        brave_dir,
        site_para_raspar,
    ]
)
pd_add_find_sequence() # permite realizar operações que não são nativas do pandas, como a busca por sequências específicas de valores (por exemplo, bytes) em colunas de um DataFrame
allmapped = []
sleep(5)
allpids = []
allprocs = []

# Coleta todos os processos do Brave e adiciona em allprocs
for q in psutil.process_iter():
    try:
        if q.name() == brave_nome_processo:
            allprocs.append(q)
    except Exception:
        pass
    
    
resi = []
allmems = []
memmi = []
np8stuff = np.array([79, 68, 61], dtype=np.uint8)

# Cria um objeto Pdmemory para cada processo do Brave encontrado. Isso irá permitir a leitura e análise da memória
for q in allprocs:
    print("---------------------")
    allmems.append(Pdmemory(pid=q.pid, filename=None))
    
print(allmems[0].regiondf.aa_dump_S1)

Traceback (most recent call last):
File "C:\wampPython\bot_pe_de_cabra\main.py", line 51, in
print((allmems[0].regiondf.aa_dump_S1))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\wampPython\bot_pe_de_cabra\env\Lib\site-packages\pandas\core\generic.py", line 6299, in getattr
return object.getattribute(self, name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'DataFrame' object has no attribute 'aa_dump_S1'

Vi isso no vídeo https://www.youtube.com/watch?v=ZXuBccIVKbE

@hansalemaos
Copy link
Owner

Você não ativou o data type S1

@mayconvs
Copy link
Author

Você não ativou o data type S1

Mas como que eu ativo isso?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants