(self, email, password)
| 10 | class 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 | # 登录入口 |
nothing calls this directly
no outgoing calls
no test coverage detected