This file contains hidden or 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 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 |
This file contains hidden or 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
# 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() |