Skip to content

Instantly share code, notes, and snippets.

View tinu1976ch's full-sized avatar

Tinu tinu1976ch

  • near Zurich, Switzerland
View GitHub Profile
@tinu1976ch
tinu1976ch / netflix-genre-crawl.py
Created November 27, 2018 08:50 — forked from blech/netflix-genre-crawl.py
Fetch genre names from Netflix
#!/usr/bin/python
# TODO make range command line arguments
import sys, codecs
sys.stdout = codecs.getwriter('utf-8')(sys.stdout) # if your terminal can't do utf-8, well...
import time
import urllib2
import BeautifulSoup
@tinu1976ch
tinu1976ch / xfocus.py
Created May 12, 2025 10:40 — forked from qur2/xfocus.py
Python + AppleScript to bring a window in foreground.
# Using applescript, sets the focus + foreground on a window by its title
# That works on OSX 10.7.5.
# @author Aurelien Scoubeau <[email protected]>
import argparse
import subprocess
parser = argparse.ArgumentParser(description='Utility to activate a window by title, for OSX')
parser.add_argument('title', help='Title of the window to activate')
args = vars(parser.parse_args())