Skip to content

Commit

Permalink
fix:修复课程url的打印
Browse files Browse the repository at this point in the history
  • Loading branch information
GentleCP committed Aug 24, 2020
1 parent f86c08f commit 6af953a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/source.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def __keep_session(self):
res = self._S.get(url=self._urls['course_select_url'])
course_select_url = re.search(r"window.location.href='(?P<course_select_url>.*?)'", res.text).groupdict().get(
"course_select_url")
print(course_select_url)
# print(course_select_url)
self._S.get(course_select_url)


Expand All @@ -54,6 +54,7 @@ def _login(self):
}
try:
res = self._S.post(url=self._urls["login_url"], data=self._user_info, headers=headers, timeout=5)

except (requests.exceptions.ConnectionError,
requests.exceptions.ConnectTimeout,
requests.exceptions.ReadTimeout):
Expand Down

0 comments on commit 6af953a

Please sign in to comment.