Skip to content

一些优化 #126

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'master' into master
  • Loading branch information
everhopingandwaiting authored Feb 7, 2021
commit ef294f2e44edd1deec7e40f021bdf05b23d67e9d
1 change: 0 additions & 1 deletion proxypool/crawlers/public/fatezero_proxylist.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ def parse(self, html):
port = ip_address['port']
yield Proxy(host=host, port=port)


if __name__ == '__main__':
crawler = FatezeroCrawler()
for proxy in crawler.crawl():
Expand Down
3 changes: 1 addition & 2 deletions proxypool/crawlers/public/ihuan.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ class IhuanCrawler(BaseCrawler):
"""
path = time.strftime("%Y/%m/%d/%H", time.localtime())
urls = [BASE_URL.format(path=path)]
ignore = True

ignore = False
def parse(self, html):
"""
parse html file to get proxies
Expand Down
3 changes: 2 additions & 1 deletion proxypool/setting.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,5 @@
ENABLE_SERVER = env.bool('ENABLE_SERVER', True)

# logger.add(env.str('LOG_RUNTIME_FILE', join(LOG_DIR, 'runtime.log')), level='DEBUG', rotation='1 week', retention='20 days')
# logger.add(env.str('LOG_ERROR_FILE', join(LOG_DIR, 'error.log')), level='ERROR', rotation='1 week')
# logger.add(env.str('LOG_ERROR_FILE', join(LOG_DIR, 'error.log')), level='ERROR', rotation='1 week')

You are viewing a condensed version of this merge commit. You can view the full changes here.