Skip to content

Commit

Permalink
yuse
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin committed Apr 20, 2018
1 parent 2a41358 commit d135290
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions utils/c.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def comp(m, d):
total_page = int(re.findall("_\d+_(\d+).html'>末页", data)[0])
page_url = re.findall("'(list_\d+_)\d+.html'>末页", data)[0]

title_page = re.compile(r'<i>\d+-\d+-\d+</i><a href="(/wenxue/renqiluanlun/\d+/\d+.html)">\[(.*?)\]')
title_page = re.compile(r'<i>\d+-\d+-\d+</i><a href="/wenxue/renqiluanlun/(\d+/\d+.html)">\[(.*?)\]')

# get all_page_urls
page_urls = []
Expand All @@ -42,6 +42,6 @@ def comp(m, d):
d = re.findall(title_page, title_list)
for item in d:
if comp(m, item[1]) and item not in re_list:
re_list.append(item)
re_list.append(url + item[0])

print(re_list)
1 change: 0 additions & 1 deletion yuse.txt

This file was deleted.

0 comments on commit d135290

Please sign in to comment.