Skip to content

Instantly share code, notes, and snippets.

View irfanykywz's full-sized avatar

Irfan irfanykywz

View GitHub Profile
@irfanykywz
irfanykywz / caption-generator.py
Created January 9, 2025 04:24
tiktok caption generator from text to image
from PIL import Image, ImageDraw, ImageFont, ImageColor
class TextCaption:
def __init__(self, **kwargs):
self.kwargs = kwargs
# Create a new image with a white background
self.max_width = self.kwargs['max_width']
# Load a font
@irfanykywz
irfanykywz / ChromeCookie.py
Created December 22, 2024 21:51
Get Chrome Cookies
import os
import json
import base64
import sqlite3
import shutil
import win32crypt
from Crypto.Cipher import AES
class ChromeCookie:
"""
For simple mouse and keyboard automation, PyAutoGUI or Pynput are great choices.
For Windows-specific applications, pywinauto is highly effective.
For image-based automation, consider using SikuliX.
@irfanykywz
irfanykywz / ffmpeg xfade+audio+scale.py
Last active December 6, 2024 02:14
[ffmpeg] xfade+audio+scale
import itertools
import subprocess
import ffmpeg
def gen_filter(segments):
"""
https://stackoverflow.com/questions/63553906/merging-multiple-video-files-with-ffmpeg-and-xfade-filter
"""
facebook video + audio url by id
https://www.facebook.com/video/playback/dash_mpd_debug.mpd?v=894439638740714