mmo_tools
Đây là một thư viện Python chứa các hàm tiện ích để chuyển đổi dữ liệu và cấu hình proxy .
service
- convert_data
- headers
- checklive
funciton
convert_data
- Chuyển đổi dữ liệu từ tệp đầu vào thành danh sách các đối tượng từ điển.
- input: path file input (str).
- result: dict (
[{},{}]).
headers
- return dict facebook headers
check_facebook_account
- Kiểm tra tài khoản bằng uid người dùng để biết trạng thái khóa
- input : user-id facebook account
- result : 1 / 0
cookie_confirm_auth_2fa
- Xác nhận mã 2fa để hạn chế out cookie khi chạy requests
- input : session , code , fb_dtsg
- result : 1 / 0
example
import os , sys
from mmo_tools import *
# Giả sử file_path là đường dẫn tới tệp dữ liệu
file_path = 'data/mmo_tools.txt'
def func1():
# Chuyển đổi dữ liệu từ tệp
data = convert_data(file_path)
print(data) # [{'key': 'value'}, {'key2': 'value2'}]
def func2():
headers = headers()
print(headers) # {'user-agent':'my user-agent','accept':'*/*'...}
def func3():
status = checlive(506356883)
print(status) # result : 0
def func4():
text_header = """Accept:
application/json
Accept-Encoding:
gzip, deflate, br
Accept-Language:
vi,en;q=0.9,fr-FR;q=0.8,fr;q=0.7,en-US;q=0.6
Af-Ac-Enc-Dat:
76febcb9e58ec473
X-Sz-Sdk-Version:
1.9.0"""
r = convert_headers_web(text_header)
print(r) # result : {'Accept': 'application/json', 'Accept-Encoding': 'gzip, deflate, br', 'Accept-Language': 'vi,en;q=0.9,fr-FR;q=0.8,fr;q=0.7,en-US;q=0.6', 'Af-Ac-Enc-Dat': '76febcb9e58ec473', 'Af-Ac-Enc-Sz-Token': '','X-Sz-Sdk-Version': '1.9.0'}
def func5():
r = requests.Session()
r.headers.update(headers())
code = "12345678"
fb_dtsg = "NA20202..."
print(cookie_confirm_auth_2fa(r,code,fb_dtsg)) # False / Cuccess
install
pip install mmo_tools
update new version
pip install --upgrade mmo_tools
contact
- Youtube : ilam
- Facebbok : Le Dinh Lam
- Telegram : Lam
Metadata
Release files for mmo-tools 0.3.0
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 | Actions |
|---|---|---|---|---|
| mmo_tools-0.3.0.tar.gz | 8.0 kB | Without provenance | Details for mmo_tools-0.3.0.tar.gz |
Release files / mmo_tools-0.3.0.tar.gz
| Download URL | mmo_tools-0.3.0.tar.gz |
|---|---|
| Size | 8.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f7b64a880b5a178817161379668e02b89a07c992ff54d4b4d3b863ea3bc2ab86
|
|
BLAKE2b-256 checksum How to use checksums |
482f01a1a58f68116c971465755507a30895fae61432402cd8ea9fe0408e71c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.7
|
Security for mmo-tools 0.3.0
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.