├── docs ├── log.txt ├── memo.md ├── notes.ini ├── ideas.md ├── journal.ini ├── thoughts.txt ├── ideas.csv ├── notes.log ├── notes.json ├── thoughts.json └── thoughts.md ├── meta ├── log.yml ├── journal.txt ├── log.json ├── scratch.md ├── thoughts.ini ├── log.txt ├── thoughts.yml ├── todo.yml └── ideas.ini ├── .config ├── todo.txt ├── readme.csv ├── scratch.txt ├── todo.json ├── thoughts.csv ├── notes.md ├── notes.txt ├── scratch.md ├── changelog.cfg └── changelog.txt ├── .data ├── ideas.yml ├── log.cfg ├── memo.txt ├── thoughts.json ├── todo.txt ├── journal.ini ├── todo.md ├── ideas.ini ├── scratch.txt ├── todo.cfg ├── todo.log ├── memo.json └── readme.ini ├── .misc ├── journal.txt ├── readme.md ├── todo.csv ├── changelog.md ├── changelog.yml ├── journal.csv ├── notes.csv ├── journal.log ├── scratch.ini ├── log.md ├── memo.md ├── ideas.md ├── thoughts.md ├── log.cfg ├── log.csv ├── log.yml ├── scratch.cfg ├── memo.csv └── ideas.json ├── drafts ├── log.md ├── memo.txt ├── readme.csv ├── memo.md ├── notes.ini ├── readme.md ├── scratch.json ├── scratch.yml ├── journal.csv ├── todo.ini ├── notes.yml ├── todo.json ├── readme.yml ├── thoughts.csv ├── thoughts.txt ├── memo.ini ├── scratch.txt ├── ideas.log └── changelog.csv ├── notes ├── memo.log ├── memo.txt ├── todo.json ├── changelog.md ├── log.log ├── todo.txt ├── scratch.log ├── journal.md ├── notes.md ├── readme.ini ├── changelog.txt ├── ideas.md ├── memo.csv ├── readme.json ├── thoughts.cfg ├── todo.cfg ├── thoughts.txt └── journal.txt ├── tmp ├── ideas.txt ├── log.yml ├── memo.md ├── scratch.yml ├── changelog.md ├── log.json ├── todo.ini ├── memo.log ├── scratch.md ├── todo.json ├── changelog.ini ├── ideas.cfg ├── todo.txt ├── thoughts.yml └── changelog.json ├── .gitignore ├── wallets.txt ├── requirements.txt ├── .editorconfig ├── README.md └── linea.py /docs/log.txt: -------------------------------------------------------------------------------- 1 | key766=3291 2 | -------------------------------------------------------------------------------- /meta/log.yml: -------------------------------------------------------------------------------- 1 | key866=5449 2 | -------------------------------------------------------------------------------- /.config/todo.txt: -------------------------------------------------------------------------------- 1 | key426=7541 2 | -------------------------------------------------------------------------------- /.data/ideas.yml: -------------------------------------------------------------------------------- 1 | list: [6,8,6] 2 | -------------------------------------------------------------------------------- /.misc/journal.txt: -------------------------------------------------------------------------------- 1 | key823=7508 2 | -------------------------------------------------------------------------------- /.misc/readme.md: -------------------------------------------------------------------------------- 1 | list: [9,7,6] 2 | -------------------------------------------------------------------------------- /.misc/todo.csv: -------------------------------------------------------------------------------- 1 | list: [3,7,4] 2 | -------------------------------------------------------------------------------- /docs/memo.md: -------------------------------------------------------------------------------- 1 | list: [4,1,4] 2 | -------------------------------------------------------------------------------- /docs/notes.ini: -------------------------------------------------------------------------------- 1 | key357=9301 2 | -------------------------------------------------------------------------------- /drafts/log.md: -------------------------------------------------------------------------------- 1 | key473=9915 2 | -------------------------------------------------------------------------------- /drafts/memo.txt: -------------------------------------------------------------------------------- 1 | list: [5,5,2] 2 | -------------------------------------------------------------------------------- /drafts/readme.csv: -------------------------------------------------------------------------------- 1 | key470=7469 2 | -------------------------------------------------------------------------------- /meta/journal.txt: -------------------------------------------------------------------------------- 1 | key830=7095 2 | -------------------------------------------------------------------------------- /notes/memo.log: -------------------------------------------------------------------------------- 1 | list: [7,9,3] 2 | -------------------------------------------------------------------------------- /notes/memo.txt: -------------------------------------------------------------------------------- 1 | list: [2,5,1] 2 | -------------------------------------------------------------------------------- /notes/todo.json: -------------------------------------------------------------------------------- 1 | list: [8,7,8] 2 | -------------------------------------------------------------------------------- /tmp/ideas.txt: -------------------------------------------------------------------------------- 1 | key579=7816 2 | -------------------------------------------------------------------------------- /tmp/log.yml: -------------------------------------------------------------------------------- 1 | list: [1,1,1] 2 | -------------------------------------------------------------------------------- /tmp/memo.md: -------------------------------------------------------------------------------- 1 | list: [3,4,5] 2 | -------------------------------------------------------------------------------- /tmp/scratch.yml: -------------------------------------------------------------------------------- 1 | key601=7273 2 | -------------------------------------------------------------------------------- /.config/readme.csv: -------------------------------------------------------------------------------- 1 | list: [2,1,8] 2 | -------------------------------------------------------------------------------- /.config/scratch.txt: -------------------------------------------------------------------------------- 1 | list: [2,6,1] 2 | -------------------------------------------------------------------------------- /.data/log.cfg: -------------------------------------------------------------------------------- 1 | memo 7da37001ba04 2 | -------------------------------------------------------------------------------- /.data/memo.txt: -------------------------------------------------------------------------------- 1 | memo 92f7ebcf55b4 2 | -------------------------------------------------------------------------------- /.data/thoughts.json: -------------------------------------------------------------------------------- 1 | key488=2022 2 | -------------------------------------------------------------------------------- /.data/todo.txt: -------------------------------------------------------------------------------- 1 | memo 5b23bb817d15 2 | -------------------------------------------------------------------------------- /.misc/changelog.md: -------------------------------------------------------------------------------- 1 | list: [9,3,2] 2 | -------------------------------------------------------------------------------- /.misc/changelog.yml: -------------------------------------------------------------------------------- 1 | key399=3857 2 | -------------------------------------------------------------------------------- /.misc/journal.csv: -------------------------------------------------------------------------------- 1 | list: [7,4,1] 2 | -------------------------------------------------------------------------------- /.misc/notes.csv: -------------------------------------------------------------------------------- 1 | memo 837cf7fbec51 2 | -------------------------------------------------------------------------------- /drafts/memo.md: -------------------------------------------------------------------------------- 1 | memo 0b80e81bab58 2 | -------------------------------------------------------------------------------- /drafts/notes.ini: -------------------------------------------------------------------------------- 1 | list: [1,6,4] 2 | -------------------------------------------------------------------------------- /drafts/readme.md: -------------------------------------------------------------------------------- 1 | list: [6,1,9] 2 | -------------------------------------------------------------------------------- /drafts/scratch.json: -------------------------------------------------------------------------------- 1 | list: [4,3,2] 2 | -------------------------------------------------------------------------------- /drafts/scratch.yml: -------------------------------------------------------------------------------- 1 | list: [6,4,3] 2 | -------------------------------------------------------------------------------- /meta/log.json: -------------------------------------------------------------------------------- 1 | memo 69709d0bf133 2 | -------------------------------------------------------------------------------- /meta/scratch.md: -------------------------------------------------------------------------------- 1 | memo 7d0b2f895ef7 2 | -------------------------------------------------------------------------------- /meta/thoughts.ini: -------------------------------------------------------------------------------- 1 | list: [9,1,9] 2 | -------------------------------------------------------------------------------- /notes/changelog.md: -------------------------------------------------------------------------------- 1 | key400=9162 2 | -------------------------------------------------------------------------------- /notes/log.log: -------------------------------------------------------------------------------- 1 | memo ee5e9da4e8fc 2 | -------------------------------------------------------------------------------- /notes/todo.txt: -------------------------------------------------------------------------------- 1 | memo ebbb27cf7674 2 | -------------------------------------------------------------------------------- /tmp/changelog.md: -------------------------------------------------------------------------------- 1 | memo 19d150292156 2 | -------------------------------------------------------------------------------- /tmp/log.json: -------------------------------------------------------------------------------- 1 | memo 49660553f5fa 2 | -------------------------------------------------------------------------------- /tmp/todo.ini: -------------------------------------------------------------------------------- 1 | memo 882ce24ba551 2 | -------------------------------------------------------------------------------- /.config/todo.json: -------------------------------------------------------------------------------- 1 | memo 7cdcc372fb0e 2 | -------------------------------------------------------------------------------- /.data/journal.ini: -------------------------------------------------------------------------------- 1 | memo 29b70828ffee 2 | -------------------------------------------------------------------------------- /.misc/journal.log: -------------------------------------------------------------------------------- 1 | memo 664a49de5fe8 2 | -------------------------------------------------------------------------------- /.misc/scratch.ini: -------------------------------------------------------------------------------- 1 | memo 473c9561a038 2 | -------------------------------------------------------------------------------- /drafts/journal.csv: -------------------------------------------------------------------------------- 1 | memo 3cba6679adcc 2 | -------------------------------------------------------------------------------- /notes/scratch.log: -------------------------------------------------------------------------------- 1 | memo c0d0f44c3519 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | __pycache__/ 2 | *.pyc 3 | .env 4 | -------------------------------------------------------------------------------- /.misc/log.md: -------------------------------------------------------------------------------- 1 | key992=8622 2 | key567=2639 3 | -------------------------------------------------------------------------------- /wallets.txt: -------------------------------------------------------------------------------- 1 | 0x59700000000000000000000000000000 -------------------------------------------------------------------------------- /.data/todo.md: -------------------------------------------------------------------------------- 1 | - 2025-10-09 19:10:31 random update 2 | -------------------------------------------------------------------------------- /.misc/memo.md: -------------------------------------------------------------------------------- 1 | - 2025-10-09 14:26:05 random update 2 | -------------------------------------------------------------------------------- /docs/ideas.md: -------------------------------------------------------------------------------- 1 | - 2025-10-12 21:05:22 random update 2 | -------------------------------------------------------------------------------- /drafts/todo.ini: -------------------------------------------------------------------------------- 1 | key789=3037 2 | list: [1,3,2] 3 | -------------------------------------------------------------------------------- /meta/log.txt: -------------------------------------------------------------------------------- 1 | - 2025-10-09 18:49:22 random update 2 | -------------------------------------------------------------------------------- /.data/ideas.ini: -------------------------------------------------------------------------------- 1 | - 2025-10-09 12:53:06 random update 2 | -------------------------------------------------------------------------------- /.data/scratch.txt: -------------------------------------------------------------------------------- 1 | - 2025-10-09 18:14:20 random update 2 | -------------------------------------------------------------------------------- /.misc/ideas.md: -------------------------------------------------------------------------------- 1 | - 2025-10-09 12:55:33 random update 2 | -------------------------------------------------------------------------------- /.misc/thoughts.md: -------------------------------------------------------------------------------- 1 | - 2025-10-09 19:10:26 random update 2 | -------------------------------------------------------------------------------- /drafts/notes.yml: -------------------------------------------------------------------------------- 1 | - 2025-10-09 12:55:34 random update 2 | -------------------------------------------------------------------------------- /drafts/todo.json: -------------------------------------------------------------------------------- 1 | memo f5f1b2546616 2 | list: [9,9,1] 3 | -------------------------------------------------------------------------------- /notes/journal.md: -------------------------------------------------------------------------------- 1 | - 2025-10-09 14:50:08 random update 2 | -------------------------------------------------------------------------------- /notes/notes.md: -------------------------------------------------------------------------------- 1 | memo 6d65ae9400fb 2 | list: [3,1,4] 3 | -------------------------------------------------------------------------------- /notes/readme.ini: -------------------------------------------------------------------------------- 1 | - 2025-10-09 14:28:41 random update 2 | -------------------------------------------------------------------------------- /.config/thoughts.csv: -------------------------------------------------------------------------------- 1 | - 2025-10-09 10:28:34 random update 2 | -------------------------------------------------------------------------------- /.data/todo.cfg: -------------------------------------------------------------------------------- 1 | # note: 50a1e7cc-c66c-446c-8f40-b2605c28cc10 2 | -------------------------------------------------------------------------------- /.data/todo.log: -------------------------------------------------------------------------------- 1 | # note: af2ea3e2-4c2a-485b-bcb0-351cd788e4d7 2 | -------------------------------------------------------------------------------- /.misc/log.cfg: -------------------------------------------------------------------------------- 1 | # note: 7429d5b0-8fa2-43e4-be10-986cf6895413 2 | -------------------------------------------------------------------------------- /.misc/log.csv: -------------------------------------------------------------------------------- 1 | # note: 95910a49-0720-449f-a120-8ec00fcc7e99 2 | -------------------------------------------------------------------------------- /.misc/log.yml: -------------------------------------------------------------------------------- 1 | # note: e500f106-4613-4804-9d79-5549ff61b2ac 2 | -------------------------------------------------------------------------------- /notes/changelog.txt: -------------------------------------------------------------------------------- 1 | - 2025-10-09 18:43:28 random update 2 | -------------------------------------------------------------------------------- /notes/ideas.md: -------------------------------------------------------------------------------- 1 | # note: ba1e6787-4cea-4963-9086-a1c4b9edf87e 2 | -------------------------------------------------------------------------------- /notes/memo.csv: -------------------------------------------------------------------------------- 1 | # note: 28e6f07e-094a-4316-9bc6-8c3d95c84e51 2 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | requests 2 | pandas 3 | tabulate 4 | tqdm 5 | -------------------------------------------------------------------------------- /tmp/memo.log: -------------------------------------------------------------------------------- 1 | # note: 0c537d74-3e8b-4594-bffe-b4d992db79ce 2 | -------------------------------------------------------------------------------- /tmp/scratch.md: -------------------------------------------------------------------------------- 1 | # note: d7dadd49-7caf-4c86-bcba-da3b25e0cfdc 2 | -------------------------------------------------------------------------------- /tmp/todo.json: -------------------------------------------------------------------------------- 1 | # note: 2857d9c7-c684-42e8-bfd0-bf0a7ff66290 2 | -------------------------------------------------------------------------------- /.config/notes.md: -------------------------------------------------------------------------------- 1 | # note: 07455e92-1124-4121-83e1-f58ff117842c 2 | -------------------------------------------------------------------------------- /.config/notes.txt: -------------------------------------------------------------------------------- 1 | # note: 1d6ea7e7-a7cc-47c9-92c5-5e2f02336799 2 | -------------------------------------------------------------------------------- /.misc/scratch.cfg: -------------------------------------------------------------------------------- 1 | # note: 439c5ecd-5a86-415f-bca1-e33063bd80eb 2 | -------------------------------------------------------------------------------- /docs/journal.ini: -------------------------------------------------------------------------------- 1 | # note: f048bad5-eedf-4cda-90f9-611e39839c01 2 | -------------------------------------------------------------------------------- /docs/thoughts.txt: -------------------------------------------------------------------------------- 1 | # note: 5ca138d9-e530-40cb-b74f-905ba891eac6 2 | -------------------------------------------------------------------------------- /drafts/readme.yml: -------------------------------------------------------------------------------- 1 | # note: cfc9f0b1-9164-423b-898d-925f68d8df6b 2 | -------------------------------------------------------------------------------- /drafts/thoughts.csv: -------------------------------------------------------------------------------- 1 | # note: 7c7e2f7c-e293-4b9e-852c-18c9d49273c5 2 | -------------------------------------------------------------------------------- /drafts/thoughts.txt: -------------------------------------------------------------------------------- 1 | # note: fcdce1db-22af-4e59-b6ec-3f0154d2d07e 2 | -------------------------------------------------------------------------------- /meta/thoughts.yml: -------------------------------------------------------------------------------- 1 | # note: 58f4bb31-fb40-48c6-bbd0-ef94d79e47c9 2 | -------------------------------------------------------------------------------- /notes/readme.json: -------------------------------------------------------------------------------- 1 | # note: 2e53544a-1d46-4e74-9919-f27379071a45 2 | -------------------------------------------------------------------------------- /notes/thoughts.cfg: -------------------------------------------------------------------------------- 1 | # note: 08f6272a-cade-4c5a-8ad4-dce805622ad1 2 | -------------------------------------------------------------------------------- /tmp/changelog.ini: -------------------------------------------------------------------------------- 1 | # note: cd73f7c8-3d41-49c8-8e31-970118fba6d9 2 | -------------------------------------------------------------------------------- /.misc/memo.csv: -------------------------------------------------------------------------------- 1 | { "ts": "2025-10-09T14:11:05.8816257+02:00", "v": 47 } 2 | -------------------------------------------------------------------------------- /docs/ideas.csv: -------------------------------------------------------------------------------- 1 | { "ts": "2025-10-09T16:40:46.5909600+02:00", "v": 46 } 2 | -------------------------------------------------------------------------------- /docs/notes.log: -------------------------------------------------------------------------------- 1 | list: [3,1,6] 2 | key67=3880 3 | memo 5c2f3c4ae7a2 4 | -------------------------------------------------------------------------------- /meta/todo.yml: -------------------------------------------------------------------------------- 1 | { "ts": "2025-10-09T13:40:59.0866678+02:00", "v": 45 } 2 | -------------------------------------------------------------------------------- /notes/todo.cfg: -------------------------------------------------------------------------------- 1 | list: [5,3,3] 2 | - 2025-10-09 18:43:27 random update 3 | -------------------------------------------------------------------------------- /tmp/ideas.cfg: -------------------------------------------------------------------------------- 1 | { "ts": "2025-10-09T14:14:39.8627314+02:00", "v": 26 } 2 | -------------------------------------------------------------------------------- /tmp/todo.txt: -------------------------------------------------------------------------------- 1 | { "ts": "2025-10-12T20:53:52.5370454+02:00", "v": 6 } 2 | -------------------------------------------------------------------------------- /.config/scratch.md: -------------------------------------------------------------------------------- 1 | { "ts": "2025-10-09T18:20:38.6375341+02:00", "v": 84 } 2 | -------------------------------------------------------------------------------- /.data/memo.json: -------------------------------------------------------------------------------- 1 | { "ts": "2025-10-09T13:59:56.8610458+02:00", "v": 15 } 2 | -------------------------------------------------------------------------------- /.misc/ideas.json: -------------------------------------------------------------------------------- 1 | { "ts": "2025-10-09T15:15:54.6212134+02:00", "v": 17 } 2 | -------------------------------------------------------------------------------- /docs/notes.json: -------------------------------------------------------------------------------- 1 | { "ts": "2025-10-09T19:16:13.9730322+02:00", "v": 80 } 2 | -------------------------------------------------------------------------------- /docs/thoughts.json: -------------------------------------------------------------------------------- 1 | { "ts": "2025-10-10T15:18:35.3393641+02:00", "v": 43 } 2 | -------------------------------------------------------------------------------- /drafts/memo.ini: -------------------------------------------------------------------------------- 1 | { "ts": "2025-10-12T21:00:43.4573104+02:00", "v": 68 } 2 | -------------------------------------------------------------------------------- /drafts/scratch.txt: -------------------------------------------------------------------------------- 1 | list: [4,6,7] 2 | - 2025-10-09 19:10:30 random update 3 | -------------------------------------------------------------------------------- /meta/ideas.ini: -------------------------------------------------------------------------------- 1 | # note: ad8dcd58-27dd-4987-9b65-38988bc42536 2 | key70=3740 3 | -------------------------------------------------------------------------------- /tmp/thoughts.yml: -------------------------------------------------------------------------------- 1 | { "ts": "2025-10-09T19:16:12.6009872+02:00", "v": 60 } 2 | -------------------------------------------------------------------------------- /.config/changelog.cfg: -------------------------------------------------------------------------------- 1 | { "ts": "2025-10-09T14:26:04.4392826+02:00", "v": 61 } 2 | -------------------------------------------------------------------------------- /docs/thoughts.md: -------------------------------------------------------------------------------- 1 | # note: bf53462c-6d73-4355-a411-30550e718b67 2 | key635=7917 3 | -------------------------------------------------------------------------------- /.config/changelog.txt: -------------------------------------------------------------------------------- 1 | # note: 69f7817e-a37a-4c91-be1b-d809da27b946 2 | memo cdf04806f2c1 3 | -------------------------------------------------------------------------------- /.data/readme.ini: -------------------------------------------------------------------------------- 1 | list: [3,9,5] 2 | { "ts": "2025-10-10T15:37:14.0106991+02:00", "v": 98 } 3 | -------------------------------------------------------------------------------- /drafts/ideas.log: -------------------------------------------------------------------------------- 1 | { "ts": "2025-10-09T18:25:18.1258365+02:00", "v": 64 } 2 | key113=8962 3 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | end_of_line = lf 5 | insert_final_newline = true 6 | -------------------------------------------------------------------------------- /tmp/changelog.json: -------------------------------------------------------------------------------- 1 | - 2025-10-09 13:38:03 random update 2 | - 2025-10-09 16:04:23 random update 3 | -------------------------------------------------------------------------------- /drafts/changelog.csv: -------------------------------------------------------------------------------- 1 | # note: 880bbd1d-81dd-4e97-a444-9fb65baa4a4e 2 | - 2025-10-09 19:10:36 random update 3 | -------------------------------------------------------------------------------- /notes/thoughts.txt: -------------------------------------------------------------------------------- 1 | { "ts": "2025-10-09T10:11:38.4294760+02:00", "v": 71 } 2 | # note: 1c82bddf-957a-403b-a155-2cdc3f14e44c 3 | -------------------------------------------------------------------------------- /notes/journal.txt: -------------------------------------------------------------------------------- 1 | - 2025-10-09 12:29:06 random update 2 | { "ts": "2025-10-09T14:11:04.1351124+02:00", "v": 83 } 3 | key5=8681 4 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Wallet Data Fetcher 2 | 3 | Скрипт для получения данных по кошелькам из API и отображения результатов в виде таблицы. 4 | 5 | ## Описание 6 | 7 | Этот скрипт читает список кошельков из файла `wallets.txt`, отправляет запросы к API и выводит результаты в виде таблицы с использованием библиотек `pandas` и `tabulate`. Также отображается прогресс выполнения с помощью библиотеки `tqdm`. 8 | 9 | ## Требования 10 | 11 | - Python 3.x 12 | - requests 13 | - pandas 14 | - tabulate 15 | - tqdm 16 | 17 | ## Установка 18 | 19 | 1. Склонируйте репозиторий: 20 | ```bash 21 | git clone 22 | cd <имя вашего репозитория> 23 | ``` 24 | 25 | 2. Установите необходимые библиотеки: 26 | ```bash 27 | pip install -r requirements.txt 28 | ``` 29 | 30 | ## Использование 31 | 32 | 1. Добавьте кошельки в файл `wallets.txt`, каждый на новой строке. 33 | 2. Запустите скрипт: 34 | ```bash 35 | python linea.py 36 | ``` 37 | 38 | ## Лицензия 39 | 40 | Этот проект лицензирован под [MIT License](LICENSE). 41 | -------------------------------------------------------------------------------- /linea.py: -------------------------------------------------------------------------------- 1 | import requests 2 | import pandas as pd 3 | from tabulate import tabulate 4 | from tqdm import tqdm 5 | 6 | # Функция для чтения кошельков из файла 7 | def read_wallets_from_file(file_path): 8 | try: 9 | with open(file_path, 'r') as file: 10 | wallets = [line.strip() for line in file if line.strip()] 11 | return wallets 12 | except FileNotFoundError: 13 | print(f"Файл {file_path} не найден.") 14 | return [] 15 | 16 | # Функция для получения данных по одному кошельку 17 | def get_wallet_data(wallet): 18 | wallet = wallet.lower() # Преобразуем кошелек в нижний регистр 19 | url = f"https://kx58j6x5me.execute-api.us-east-1.amazonaws.com/linea/getUserPointsSearch?user={wallet}" 20 | response = requests.get(url) 21 | if response.status_code == 200: 22 | data = response.json() 23 | return data[0] if data else None 24 | else: 25 | return None 26 | 27 | # Функция для обработки списка кошельков 28 | def check_wallets(wallets): 29 | results = [] 30 | total_xp = 0 31 | for wallet in tqdm(wallets, desc="Обработка кошельков"): 32 | data = get_wallet_data(wallet) 33 | if data: 34 | ea_flag = "YES" if data.get("ea_flag") == 1 else "хуйня" 35 | results.append({ 36 | "wallet": wallet, 37 | "Rank": data.get("rank_xp"), 38 | "Total Points (XP)": data.get("xp"), 39 | "Active Liquidity Points": data.get("alp"), 40 | "Ecosystem Points": data.get("ep"), 41 | "Referral Points": data.get("rp"), 42 | "Veteran Points": data.get("plp"), 43 | "Backfilled Points": data.get("bp"), 44 | "Early Adoptor Flag": ea_flag 45 | }) 46 | total_xp += data.get("xp", 0) 47 | else: 48 | print(f"Нет данных для кошелька {wallet}") 49 | return results, total_xp 50 | 51 | # Основная функция 52 | def main(): 53 | wallets_file_path = 'wallets.txt' # Укажите путь к вашему файлу с кошельками 54 | wallets = read_wallets_from_file(wallets_file_path) 55 | if wallets: 56 | print(f"Найдено {len(wallets)} кошельков.") 57 | results, total_xp = check_wallets(wallets) 58 | if results: 59 | df = pd.DataFrame(results) 60 | print("\nТаблица результатов:") 61 | print(tabulate(df, headers='keys', tablefmt='psql')) 62 | print(f"\nОбщее количество xp: {total_xp}") 63 | else: 64 | print("Нет данных для отображения.") 65 | else: 66 | print("Список кошельков пуст или файл не найден.") 67 | 68 | # Запуск основной функции 69 | if __name__ == "__main__": 70 | main() 71 | --------------------------------------------------------------------------------