api配置分离

This commit is contained in:
Jing Ling
2020-02-10 20:11:15 +08:00
parent 3f8aa8b74d
commit 38c4de6896
21 changed files with 196 additions and 196 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
import re
import time
import requests
import config
import api
from bs4 import BeautifulSoup
from common.search import Search
from config import logger
@@ -18,8 +18,8 @@ class Github(Search):
self.session = requests.Session()
self.login_url = 'https://github.com/login'
self.post_url = 'https://github.com/session'
self.email = config.github_email
self.password = config.github_password
self.email = api.github_email
self.password = api.github_password
def login_github(self):
"""