(Only telegram groups no newly created)
And don't comment here directly message me
Minimum Price 50 rupye maximum price can be 100 vary based on group
And in special group case it will be more
@Panditsiddharth
Or Call 6389680622
Python Codes Basic to Advance 在 Telegram 上分享的最新内容
pip install Flask
from flask import Flask, jsonify, render_template
import requests
app = Flask(__name__)
@app.route('/')
def home():
return render_template('index.html')
@app.route('/tags')
def get_tags():
url = 'https://api.waifu.im/tags'
response = requests.get(url)
if response.status_code == 200:
data = response.json()
return jsonify(data)
else:
return jsonify({'error': 'Request failed with status code:', 'status': response.status_code}), response.status_code
@app.route('/search/<tag>')
def search_images(tag):
url = 'https://api.waifu.im/search'
params = {
'included_tags': [tag],
}
response = requests.get(url, params=params)
if response.status_code == 200:
data = response.json()
return jsonify(data)
else:
return jsonify({'error': 'Request failed with status code:', 'status': response.status_code}), response.status_code
if __name__ == '__main__':
app.run(debug=True)
templates
in the same directory as your Flask app and create a file named index.html
.<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Waifu App</title>
</head>
<body>
<h1>Welcome to the Waifu App! 🌟</h1>
<h2>Available Tags and Image Search</h2>
<p>Use the following endpoints:</p>
<ul>
<li><a href="/tags">Get Tags</a></li>
<li>Search Images: <a href="/search/maid">Maid Images</a></li>
</ul>
</body>
</html>
app.py
) and the HTML file.python app.py
http://127.0.0.1:5000/
to see the app in action! 🎉 import psutil
import platform
from sys import version as pyver
from pyrogram import __version__ as pyrover
def get_system_info():
p_core = psutil.cpu_count(logical=False) # Physical cores
t_core = psutil.cpu_count(logical=True) # Logical cores
ram = str(round(psutil.virtual_memory().total / (1024.0**3))) + " GB"
try:
cpu_freq = psutil.cpu_freq().current
if cpu_freq >= 1000:
cpu_freq = f"{round(cpu_freq / 1000, 2)} ɢʜᴢ"
else:
cpu_freq = f"{round(cpu_freq, 2)} ᴍʜᴢ"
except Exception:
cpu_freq = "ғᴀɪʟᴇᴅ ᴛᴏ ғᴇᴛᴄʜ"
# HDD information
hdd = psutil.disk_usage("/")
total_hdd = round(hdd.total / (1024.0**3), 2) # Total space in GB
used_hdd = round(hdd.used / (1024.0**3), 2) # Used space in GB
free_hdd = round(hdd.free / (1024.0**3), 2) # Free space in GB
# Return system information as a dictionary
return {
"Physical Cores": p_core,
"Logical Cores": t_core,
"RAM": ram,
"CPU Frequency": cpu_freq,
"HDD Total": f"{total_hdd} GB",
"HDD Used": f"{used_hdd} GB",
"HDD Free": f"{free_hdd} GB",
"Python Version": pyver.split()[0] if pyver else "Unknown",
"Pyrogram Version": pyrover
}
if __name__ == "__main__":
system_info = get_system_info()
text=""
for key, value in system_info.items():
text+=f"{key}: {value}\n"
print(text)
def func(a, b=2, c=3):
return a + b + c
print(func(1, c=4))
try:
from faker import Faker
except:
import os
os.system("pip install faker")
fake = Faker()
F = fake.first_name_female()
M = fake.first_name_male()
enter = input('''Select your Gender!
M:---> for Male
F:---> for Female \t''').upper()
if "M" in enter:
PRINCE = "Enter your name I will find your princess 💖\t"
M = input(PRINCE).capitalize()
elif "F" in enter:
PRINCESS = "Enter your name I will find your Prince💖\t"
F = input(PRINCESS).capitalize()
elif input.str("M", "F") not in enter:
print("try again")
else:
print("wrong input")
# Made by @mr_sukkun
couple1 = {M: F}
couple = {value: key for key, value in couple1.items()}
if "M" in enter and M in couple1:
print("Hey "+ M, couple1[M], "is your Girlfriend 💖")
if "F" in enter and F in couple:
print("Hey "+F, couple[F], "is your Boyfriend 💖")