Skip to content

Instantly share code, notes, and snippets.

View eddieoz's full-sized avatar
🏴‍☠️
Hacking

Edilson Osorio Jr eddieoz

🏴‍☠️
Hacking
View GitHub Profile
@intrd
intrd / Xwitter_createFirstToken.py
Last active November 12, 2024 11:34
X/Twitter - Simple Python3 OAuth 2.0 Authorization (PKCE), Refresh Token and Tweet Action without Tweepy or any 3rd-party libs
## X/Twitter - Simple Python3 OAuth 2.0 Authorization (PKCE), Refresh Token and Tweet Action without Tweepy or any 3rd-party libs.
# Author: [email protected]
# Action: Create Refresh Token
import os
import secrets
import string
import requests
from urllib.parse import urlencode
@eddieoz
eddieoz / CountYoutubeVideosTime.js
Created December 31, 2023 11:18 — forked from RafalJDev/CountYoutubeVideosTime.js
Count all videos time duration on youtube channel
//You need to run this in javascript console inside chrome
//Assumptions:
//1. Will count only "expanded" videos on page, you may first need to run script to scroll to last video or do it manually
//2. Tested on chrome, ubuntu, 2019
//3. Time format: hh:mm:ss
var array = document.getElementsByClassName("style-scope ytd-thumbnail-overlay-time-status-renderer");
var arrLength = array.length;
@RafalJDev
RafalJDev / CountYoutubeVideosTime.js
Last active November 11, 2024 17:14
Count all videos time duration on youtube channel
//You need to run this in javascript console inside chrome (althought should work the same in other browsers)
//Assumptions:
//1. Will count only "expanded" videos on page, you may first need to run script to scroll to last video or do it manually
//2. Tested on chrome, ubuntu, 2019
//3. Time format: hh:mm:ss
var array = document.getElementsByClassName("style-scope ytd-thumbnail-overlay-time-status-renderer");
var arrLength = array.length;