MCPcopy Create free account
hub / github.com/Kr1s77/awesome-python-login-model / __init__

Method __init__

Github/login.py:12–24  ·  view source on GitHub ↗
(self, email, password)

Source from the content-addressed store, hash-verified

10class GithubLogin(object):
11
12 def __init__(self, email, password):
13 # 初始化信息
14 self.headers = {
15 'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36',
16 'Referer': 'https://github.com/',
17 'Host': 'github.com'
18 }
19
20 self.session = requests.Session()
21 self.login_url = 'https://github.com/login'
22 self.post_url = 'https://github.com/session'
23 self.email = email
24 self.password = password
25
26 def login_GitHub(self):
27 # 登录入口

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected