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 | |
def create_youtube_playlist(playlist_title, youtube_urls): | |
playlist_url = 'https://www.youtube.com/watch_videos?video_ids=' | |
for youtube_url in youtube_urls: | |
regex = re.compile( | |
r'(https?://)?(www\.)?(youtube|youtu|youtube-nocookie)\.(com|be)/(watch\?v=|embed/|v/|.+\?v=)?(?P<id>[A-Za-z0-9\-=_]{11})') | |
match = regex.match(youtube_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
import gi.repository.GLib | |
import dbus | |
from dbus.mainloop.glib import DBusGMainLoop | |
import pyautogui | |
import time | |
from signal import signal, SIGINT | |
from sys import exit | |
def handler(signal_received, frame): |
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 sqlite3 | |
from sqlite3 import Error | |
import tweepy | |
import configparser | |
# IMPORT CONFIG VARIABLES | |
config = configparser.ConfigParser() | |
config.read('conf.ini') | |
twitter_consumer_key = config['TWITTER']['twitter_consumer_key'] |
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 bs4 import BeautifulSoup | |
from splinter import Browser | |
from selenium.webdriver.chrome.options import Options | |
import csv | |
categories = [ | |
{'Arbeitsspeicher': {'pages': []}}, | |
{'Capture-Karten': {'pages': []}}, | |
{'PC-Komponenten': {'pages': ['CPUs', 'Festplatten', 'Laufwerke', 'Mainboards']}}, |
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 bs4 import BeautifulSoup | |
import requests | |
import urllib.parse | |
import pandas as pd | |
import json | |
import csv | |
def build_query(a, b): | |
a = a.replace(' ', '+') |
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
// OPEN JS CONSOLE THEN | |
// UPVOTE | |
$('.up').click(); | |
// DOWNVOTE | |
$('.down').click(); | |
// P.S. NOT RECOMMENDED |
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
things = { | |
'1': 'one', | |
'2': 'two', | |
'3': 'three', | |
'0': 'EXIT' | |
} | |
def menu(options, menu_text): | |
while 1: | |
for k, v in options.items(): |
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 webview | |
class Api: | |
def __init__(self): | |
self.recording = False | |
def record(self): | |
if not self.recording: | |
self.recording = True |
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
[TWITTER] | |
twitter_consumer_key = XXXX | |
twitter_consumer_secret = XXXX | |
twitter_access_token = XXXX | |
twitter_access_token_secret = XXXX |
NewerOlder