Skip to content

Instantly share code, notes, and snippets.

View cometothed4rkside's full-sized avatar
🏠
Working from home

Eren cometothed4rkside

🏠
Working from home
View GitHub Profile
@cometothed4rkside
cometothed4rkside / pdf_to_markdown.py
Created August 25, 2025 22:44
pdf_to_markdown.py
#!/usr/bin/env python3
"""
PDF to Markdown Converter
"""
import fitz # PyMuPDF
import re
import os
import sys
from typing import List, Tuple
@cometothed4rkside
cometothed4rkside / mp3.py
Created June 2, 2025 15:27
Youtube to data
from yt_dlp import YoutubeDL
import time
def get_video_urls(channel_url):
ydl_opts = {
'extract_flat': True,
'quiet': True
}
with YoutubeDL(ydl_opts) as ydl:
/* ---------- Ayarlanabilir parametreler ---------- */
const MAX_SELECTION = 100; // İşaretlenecek maksimum kutu
const DELAY_MS = 200; // Her kutu tıklaması arasındaki gecikme (ms)
const SELECT_MODE_WAIT = 500; // “Seç” düğmesinden sonra UI’nın açılmasını bekleme (ms)
const DIALOG_TIMEOUT = 5000; // Onay diyaloğunu bekleme üst sınırı (ms)
/* ---------- 0) “Seç” düğmesine tıkla ---------- */
(function clickSelectButton () {
const selectBtn = [...document.querySelectorAll('div[role="button"]')]
.find(el => el.textContent.trim() === 'Seç' &&
@cometothed4rkside
cometothed4rkside / bluesky.py
Created April 3, 2025 20:39
Bluesky automation python - unfollow all - follow all
import requests
import json
import time
from datetime import datetime, timedelta
import argparse
import random
import os
import threading
from dotenv import load_dotenv
@cometothed4rkside
cometothed4rkside / twitter-dm-cleaner.js
Created March 25, 2025 11:36
Twitter DM Toplu Temizleyici - Twitter Dm Cleaner (TamperMonkey)
// ==UserScript==
// @name Twitter DM Toplu Temizleyici
// @description Twitter DM kutusunda tüm mesajları otomatik olarak siler (sonsuz kaydırma destekli).
// @match https://x.com/messages*
// @version 1.0.0
// @grant GM_registerMenuCommand
// ==/UserScript==
(function () {
'use strict';
import cv2
import numpy as np
import insightface
from insightface.app import FaceAnalysis
from PIL import Image, ImageDraw, ImageFont
import os
from skimage.metrics import structural_similarity as ssim
def cv2_to_pil(cv2_img):
cv2_img = cv2.cvtColor(cv2_img, cv2.COLOR_BGR2RGB)
@cometothed4rkside
cometothed4rkside / twitter.py
Created April 23, 2024 00:28
Twitter İtibar Takibi // Gmail
import smtplib
from email.message import EmailMessage
import time
from twikit import Client
USERNAME = '' #Twitter kullanıcı adınız
EMAIL = '' #Twitter e-posta adresiniz
PASSWORD = '' #Twitter Şifreniz
APP_PASSWORD = '' #https://myaccount.google.com/apppasswords adresinden 16 haneli şifre oluşturun ve buraya ekleyin.
@cometothed4rkside
cometothed4rkside / engelle.py
Created March 19, 2024 17:17
Twitter'da troll engellemek için python kodları
import requests
import getpass
import argparse
import threading
import json
import requests
from bs4 import BeautifulSoup
import re
import json
import urllib3
@cometothed4rkside
cometothed4rkside / twitter.js
Created January 3, 2024 17:00
Twitter export blocked accounts 2024
var USERS_PER_FILE = 3000; // Dosya başına toplanacak kullanıcı sayısı
var _USERS = []; // Toplanan kullanıcıların saklandığı dizi
var SCROLL_DELAY = 2000; // Sayfa kaydırma arasındaki bekleme süresi (milisaniye)
var WAIT_AFTER_BATCH = 60000; // Her 3000 kullanıcıdan sonra bekleme süresi (milisaniye)
var batchCount = 0; // Toplanan kullanıcı bloklarının sayısı
var collectUsers = function() {
var userContainers = document.querySelectorAll('[data-testid=UserCell]');
Array.prototype.forEach.call(userContainers, function(userContainer) {
var userName = "";
@cometothed4rkside
cometothed4rkside / twitterunfollow.js
Created November 13, 2023 06:51
Twitter Unfollow Javascript
var LANGUAGE = "TR"; //NOTE: change it to use your language! NOT: kullanmadan önce dili değiştirin!
var WORDS =
{
//English language:
//İngilizce:
EN:
{
followsYouText: "Follows you", //Text that informs that follows you.
followingButtonText: "Following", //Text of the "Following" button.
confirmationButtonText: "Unfollow" //Text of the confirmation button. I am not totally sure.