date_default_timezone_set("Asia/Tashkent");
// 4 xonali yil
$yil = date("Y"); // 2025
// 2 xonali yil
$yil2 = date("y"); // 25
// Oy
$oy_raqam = date("m"); // 01–12 (raqam bilan)
$oy_nomi = date("F"); // January, February ... (inglizcha)
$oy_nomi_3 = date("M"); // Jan, Feb ... (qisqartma)Forwarded from WWIW Repository
import json
from fastapi import FastAPI, Query
from fastapi.responses import JSONResponse
from playwright.async_api import async_playwright
app = FastAPI()
NANO_URL = "https://nanobanana.ai/generator"
CREATE_URL = "https://nanobanana.ai/api/generate-image"
STATUS_URL = "https://nanobanana.ai/api/generate-image/status?taskId="
#Manba @thewwiw & @wwiw_repository
#Manba @thewwiw & @wwiw_repository
#Manba @thewwiw & @wwiw_repository
async def fetch_with_playwright(prompt: str):
async with async_playwright() as pw:
browser = await pw.chromium.launch(headless=True)
ctx = await browser.new_context()
page = await ctx.new_page()
await page.goto(NANO_URL, wait_until="networkidle")
await page.wait_for_timeout(1500)
#Manba @thewwiw & @wwiw_repository
#Manba @thewwiw & @wwiw_repository
#Manba @thewwiw & @wwiw_repository
cookies = await ctx.cookies()
cookie_header = "; ".join([f"{c['name']}={c['value']}" for c in cookies])
csrf_token = None
for c in cookies:
if c["name"] == "__Host-next-auth.csrf-token":
csrf_token = c["value"]
break
if csrf_token is None:
await browser.close()
return {"error": "CSRF token topilmadi", "cookies": cookie_header}
payload = {
"prompt": prompt,
"styleId": "realistic",
"mode": "text",
"imageUrl": None,
"imageSize": "auto",
"quality": "standard",
"numImages": 1,
"outputFormat": "png",
"model": "nano-banana",
"resolution": "1024*1024",
"aspectRatio": "1:1"
}
js = f"""
async () => {{
const res = await fetch("{CREATE_URL}", {{
method: "POST",
headers: {{
"Content-Type": "application/json",
"Cookie": "{cookie_header}"
}},
body: JSON.stringify({json.dumps(payload)})
}});
return res.json();
}}
"""
create_res = await page.evaluate(js)
if "taskId" not in create_res:
await browser.close()
return {
"error": "Failed to create task",
"response": create_res,
"cookies": cookie_header
}
task_id = create_res["taskId"]
while True:
status_js = f"""
async () => {{
const res = await fetch("{STATUS_URL}{task_id}", {{
method: "GET",
headers: {{
"Cookie": "{cookie_header}"
}}
}});
return res.json();
}}
"""
status = await page.evaluate(status_js)
if status.get("status") == "completed":
await browser.close()
return {
"taskId": task_id,
"imageUrl": status.get("imageUrl"),
"status": "completed"
}
if status.get("status") == "failed":
await browser.close()
return {"error": "Generation failed", "status": status}
#Manba @thewwiw & @wwiw_repository
#Manba @thewwiw & @wwiw_repository
#Manba @thewwiw & @wwiw_repository
@app.get("/generate")
async def generate(prompt: str = Query(...)):
try:
result = await fetch_with_playwright(prompt)
return JSONResponse(result)
except Exception as e:
return JSONResponse({"error": str(e)})
Please open Telegram to view this post
VIEW IN TELEGRAM
😁3👍2🔥1👏1
Forwarded from VIP KODLAR (Asilbek Coder)
Please open Telegram to view this post
VIEW IN TELEGRAM
https://wineclo.com/webhost/api
Endi xamma reseller bo'lishi mumkin WINECLO dan host olib sotishingiz mumkin muhimi hamasi avtomatik tarzda ishlaydi proyektingiz bilan integratsiya qilsangiz bas
Endi xamma reseller bo'lishi mumkin WINECLO dan host olib sotishingiz mumkin muhimi hamasi avtomatik tarzda ishlaydi proyektingiz bilan integratsiya qilsangiz bas
KinoTochka 4.2 Torrent DLE 16.1.zip
115.2 MB
Kinosayt script ↗️
Admin panel :
e-mail: admin@kinopushka.org
Parol: 22334455
Manba:
https://t.me/WonderfulCoders
Kod ishlaydi uzim ishlatib korganman
Admin panel :
e-mail: admin@kinopushka.org
Parol: 22334455
Manba:
https://t.me/WonderfulCoders
Kod ishlaydi uzim ishlatib korganman
perfect pNel.zip
53.2 MB
📁 Kod turi: Nakrutka sayt skripti
🧰 Ma’lumot: Hindlarga tegishli nakrutka sayt skripti.
Tarqalgan yoki yo‘qligi aniq emas (arxiv ko‘rinishida).
👨💻 Dasturchi: Nomaʼlum
💎 Manba: @WonderFulcoders
🧰 Ma’lumot: Hindlarga tegishli nakrutka sayt skripti.
Tarqalgan yoki yo‘qligi aniq emas (arxiv ko‘rinishida).
👨💻 Dasturchi: Nomaʼlum
💎 Manba: @WonderFulcoders
Please open Telegram to view this post
VIEW IN TELEGRAM
Nak bot kodini tarqatamiz zori 1000 reak bolsa
@FasterSmsBot demo 1ta yetmchadan ogandim sakrayabd tarqatvoramz
Nak hisoblamemz
@FasterSmsBot demo 1ta yetmchadan ogandim sakrayabd tarqatvoramz
Nak hisoblamemz
4👍1.19K🎉166🤩154❤153🔥145😍142💯131🥰118😁15👨💻2🤝1
Forwarded from api-system.uz | Updates 🇺🇿
Dasturchilar, freelanserlar va biznes egalari uchun barcha zarur API-lar yagona ekotizimda jamlandi.
Bizning platforma orqali siz:
Hozirgi mavjud apilar ro'yxati:
Asosiy afzalliklar:
Please open Telegram to view this post
VIEW IN TELEGRAM