Skip to content

Instantly share code, notes, and snippets.

View AmarnathCJD's full-sized avatar
😎
Focusing:)

Amarnath C AmarnathCJD

😎
Focusing:)
View GitHub Profile
@AmarnathCJD
AmarnathCJD / MainActivity.kt
Last active October 30, 2023 21:03
Drm Exoplayer
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
@AmarnathCJD
AmarnathCJD / t.py
Last active December 20, 2022 17:42
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()
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)
}
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({
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",
// (c) RoseLoverX 2022
package main
import (
"encoding/json"
"fmt"
"io"
"net/http"
"net/url"
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"]))