Skip to content

Instantly share code, notes, and snippets.

@New-dev0
New-dev0 / quotefancy.py
Created March 23, 2021 05:30
download/get random quotes from quotefancy.com
# A script to get/download random quotes from
# QuoteFancy.com in form of text or images ...
import random
import urllib
from urllib import urlopen
from bs4 import BeautifulSoup as bs
@New-dev0
New-dev0 / TeleToPyroSTRING.py
Last active September 30, 2024 14:42
Script to Convert Telethon's StringSession to Pyrogram's
# Both Telethon and Pyrogram should be Installed
# Made only for Educational Purpose
# New-dev0 (2021)
import struct, base64
from telethon.sessions.string import StringSession
from telethon.sync import TelegramClient
from pyrogram.storage.storage import Storage
from pyrogram import utils
from pyUltroid.fns.tools import translate
from threading import Thread
from yaml import safe_load
from glob import glob
All = glob("strings/strings/*.yml")
en = "strings/strings/en.yml"
strings = safe_load(open(en, "r"))
All.remove(en)
import os
from telethon.sync import TelegramClient
from glob import glob
chat_id=-1001237141420
client = TelegramClient(None, api_id=6, api_hash="eb06d4abfb49dc3eeb1aeb98ae0f581e")
files = "android/app/build/outputs/apk/"
path = glob(files + "*/*.apk")
if not path:
console.log(localStorage.getItem("GameSettings"));