مكتبه تخص الانستقرام
Project description
Usage
Function: convert_email_to_userpass
def convert_email_to_userpass(file_content):
"""
تحويل محتوى ملف TXT إلى تنسيق user:pass.
Args:
file_content (str): محتوى الملف كنص.
Returns:
str: نص بتنسيق user:pass بدون تكرار.
"""
lines = file_content.splitlines()
processed_lines = set()
for line in lines:
if ":" in line:
email, password = line.split(":", 1)
username = email.split("@")[0]
processed_lines.add(f"{username}:{password}")
return "\\n".join(processed_lines)
### Example: Convert Email-Password File
from instagram_api1 import convert_email_to_userpass
file_content = """
davidlains@gmail.com:gfgarage
anthony.groult@aliceadsl.fr:esclave1
"""
result = convert_email_to_userpass(file_content)
print(result)
### Example: Try Instagram Login
from instagram_api1 import try_login
username = input("أدخل اسم المستخدم (username): ").strip()
password = input("أدخل كلمة المرور (password): ").strip()
session_id = try_login(username, password)
if session_id:
print(f"Session ID: {session_id}")
else:
print("فشل تسجيل الدخول.")
###Example: Reset Instagram Password
from instagram_api1 import InstagramAPI
instagram_api = InstagramAPI()
email = input("Enter the email to reset password: ")
result = instagram_api.send_password_reset(email)
if "error" in result:
print(f"Error: {result['error']}")
else:
print("Password reset request sent successfully!")
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
instagram_api1-0.4.tar.gz
(4.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file instagram_api1-0.4.tar.gz.
File metadata
- Download URL: instagram_api1-0.4.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
572eb3f5771c5c74a287c04704ef3ed138f9c4af0ec5b3365ac919e04ae3866c
|
|
| MD5 |
424b5edc113c8f77f6bfd864b602271f
|
|
| BLAKE2b-256 |
caf2c22a0819a8bb4a3285c8bcda28d9a43fcb174e76656ddec0e0b6934e475b
|
File details
Details for the file instagram_api1-0.4-py3-none-any.whl.
File metadata
- Download URL: instagram_api1-0.4-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
906bd0a78ec5772a6d6d00e175f21c5f8c63a8fa4037df4c6e75e15fe8818539
|
|
| MD5 |
2d0c940bcaa7fb7a4c49992d8cb8fbce
|
|
| BLAKE2b-256 |
a44ec8c79b3df1b07ee0d198695a743069cad06cf245c963370c64374a5b798d
|