Skip to content

Commit 22150a1

Browse files
committed
update: udpate clawer with github updated
1 parent a05ab58 commit 22150a1

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
*.bak
22

33
*.pyc
4+
*.log

GitPrey.py

+10-10
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@
4242

4343
class GitPrey(object):
4444
"""
45-
$$$$$$\ $$$$$$\ $$$$$$$$\ $$$$$$$\ $$$$$$$\ $$$$$$$$\ $$\ $$ \\
46-
$$ __$$\ \_$$ _|\__$$ __| $$ __$$\ $$ __$$\ $$ _____|\$$\ $$ |
47-
$$ / \__| $$ | $$ | $$ | $$ |$$ | $$ |$$ | \$$\ $$ /
48-
$$ |$$$$\ $$ | $$ | $$$$$$$ |$$$$$$$ |$$$$$\ \$$$$ /
49-
$$ |\_$$ | $$ | $$ | $$ ____/ $$ __$$< $$ __| \$$ /
50-
$$ | $$ | $$ | $$ | $$ | $$ | $$ |$$ | $$ |
51-
\$$$$$$ |$$$$$$\ $$ | $$ | $$ | $$ |$$$$$$$$\ $$ |
52-
\______/ \______| \__| \__| \__| \__|\________| \__|
45+
$$$$$$\ $$$$$$\ $$$$$$$$\ $$$$$$$\ $$$$$$$\ $$$$$$$$\ $$\ $$ \\
46+
$$ __$$\ \_$$ _|\__$$ __|$$ __$$\ $$ __$$\ $$ _____|\$$\ $$ |
47+
$$ / \__| $$ | $$ | $$ | $$ |$$ | $$ |$$ | \$$\ $$ /
48+
$$ |$$$$\ $$ | $$ | $$$$$$$ |$$$$$$$ |$$$$$\ \$$$$ /
49+
$$ |\_$$ | $$ | $$ | $$ ____/ $$ __$$< $$ __| \$$ /
50+
$$ | $$ | $$ | $$ | $$ | $$ | $$ |$$ | $$ |
51+
\$$$$$$ |$$$$$$\ $$ | $$ | $$ | $$ |$$$$$$$$\ $$ |
52+
\______/ \______| \__| \__| \__| \__|\________| \__|
5353
5454
Author: repoog
5555
Version: 2.6
@@ -158,7 +158,7 @@ def __file_content_inspect(self, project_string, file_pattern, project_pattern):
158158
for code_line in code_file.split('\n'):
159159
account_code = re.search('|'.join(project_pattern), code_line, re.I)
160160
if account_code:
161-
code_print(">> " + code_line.encode('utf-8').strip())
161+
code_print(">> " + code_line.strip())
162162
repo_code_dic[repo_name][file_url].append(code_line.encode('utf-8').strip())
163163
else:
164164
continue
@@ -177,7 +177,7 @@ def __file_name_inspect(self, file_query_string, print_mode=0):
177177
check_url = self.search_url.format(page=page_num, keyword=file_query_string)
178178
page_html = self.__get_page_html(check_url)
179179
project_html = BeautifulSoup(page_html, 'lxml')
180-
repo_list = project_html.select('div .d-inline-block.col-10 > a:nth-of-type(2)')
180+
repo_list = project_html.select('div .min-width-0 > a:nth-of-type(2)')
181181
if not repo_list:
182182
break
183183
# Handle file links for each project

0 commit comments

Comments
 (0)