42
42
43
43
class GitPrey (object ):
44
44
"""
45
- $$$$$$\ $$$$$$\ $$$$$$$$\ $$$$$$$\ $$$$$$$\ $$$$$$$$\ $$\ $$ \\
46
- $$ __$$\ \_$$ _|\__$$ __| $$ __$$\ $$ __$$\ $$ _____|\$$\ $$ |
47
- $$ / \__| $$ | $$ | $$ | $$ |$$ | $$ |$$ | \$$\ $$ /
48
- $$ |$$$$\ $$ | $$ | $$$$$$$ |$$$$$$$ |$$$$$\ \$$$$ /
49
- $$ |\_$$ | $$ | $$ | $$ ____/ $$ __$$< $$ __| \$$ /
50
- $$ | $$ | $$ | $$ | $$ | $$ | $$ |$$ | $$ |
51
- \$$$$$$ |$$$$$$\ $$ | $$ | $$ | $$ |$$$$$$$$\ $$ |
52
- \______/ \______| \__| \__| \__| \__|\________| \__|
45
+ $$$$$$\ $$$$$$\ $$$$$$$$\ $$$$$$$\ $$$$$$$\ $$$$$$$$\ $$\ $$ \\
46
+ $$ __$$\ \_$$ _|\__$$ __|$$ __$$\ $$ __$$\ $$ _____|\$$\ $$ |
47
+ $$ / \__| $$ | $$ | $$ | $$ |$$ | $$ |$$ | \$$\ $$ /
48
+ $$ |$$$$\ $$ | $$ | $$$$$$$ |$$$$$$$ |$$$$$\ \$$$$ /
49
+ $$ |\_$$ | $$ | $$ | $$ ____/ $$ __$$< $$ __| \$$ /
50
+ $$ | $$ | $$ | $$ | $$ | $$ | $$ |$$ | $$ |
51
+ \$$$$$$ |$$$$$$\ $$ | $$ | $$ | $$ |$$$$$$$$\ $$ |
52
+ \______/ \______| \__| \__| \__| \__|\________| \__|
53
53
54
54
Author: repoog
55
55
Version: 2.6
@@ -158,7 +158,7 @@ def __file_content_inspect(self, project_string, file_pattern, project_pattern):
158
158
for code_line in code_file .split ('\n ' ):
159
159
account_code = re .search ('|' .join (project_pattern ), code_line , re .I )
160
160
if account_code :
161
- code_print (">> " + code_line .encode ( 'utf-8' ). strip ())
161
+ code_print (">> " + code_line .strip ())
162
162
repo_code_dic [repo_name ][file_url ].append (code_line .encode ('utf-8' ).strip ())
163
163
else :
164
164
continue
@@ -177,7 +177,7 @@ def __file_name_inspect(self, file_query_string, print_mode=0):
177
177
check_url = self .search_url .format (page = page_num , keyword = file_query_string )
178
178
page_html = self .__get_page_html (check_url )
179
179
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)' )
181
181
if not repo_list :
182
182
break
183
183
# Handle file links for each project
0 commit comments