Skip to content
This repository has been archived by the owner on Apr 20, 2021. It is now read-only.

Commit

Permalink
Fix:the regular expression of xsc.
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhaoQi99 committed Sep 19, 2018
1 parent 411eb6b commit 2da2968
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spider.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def Spider_snnu_xsc(send_number,to_addr_str,flag=1):
subject_EN = 'snnu_xsc'
subject = '学生处主页'
url = 'http://www.xsc.snnu.edu.cn/Announcements.asp'
url_main = 'http://www.xsc.snnu.edu.cn/Announcements.asp?id=138&bh='
url_main = 'http://www.xsc.snnu.edu.cn/Announcements.asp?id=144&bh='
rule = 'gk3">(?P<time>\d*-\d*-\d*)[^;]*;[^;]*;[^;]*;[^;]*;bh=(?P<link>\d*)[^>]*>(?P<title>[^</]*)'
split_rule = '([^ ]*) (\d*-\d*-\d*) ([^\n]*)\n'

Expand Down

0 comments on commit 2da2968

Please sign in to comment.