Skip to content

Instantly share code, notes, and snippets.

View Xmoe's full-sized avatar

Moe Xmoe

  • Germany
View GitHub Profile
@Xmoe
Xmoe / ekVV_login.py
Last active April 1, 2018 14:54
Simulate the login process to eKVV in python to obtain cookies.
import requests_html
import json
def login(username=None, password=None):
"""
:param username:
:param password:
:return: A session with all the necessary context ( cookies etc ) to make further requests to the server
@Xmoe
Xmoe / objc_util_ext.py
Created August 16, 2015 18:43
objc_util_ext.py
# coding: utf-8
from objc_util import *
NotificationCenter = ObjCClass('NSNotificationCenter').defaultCenter()
_registered_notifications = [] # keep a reference, so you can later delete them.
def import_framework(name):
fmw = ObjCClass('NSBundle').bundleWithPath_('/System/Library/Frameworks/{}.framework'.format(name))
fmw.load()