Skip to content

Commit

Permalink
Set verbose mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Bitwise-01 committed Jun 14, 2019
1 parent ea15bb0 commit 0c7c6f0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
from .proxy import Proxy
from random import randint
from .display import Display
from .const import fetch_time
from .proxy_list import ProxyList
from bs4 import BeautifulSoup as bs
from threading import Thread, RLock
from .const import fetch_time, debug


class Scraper(object):
Expand Down Expand Up @@ -58,7 +58,7 @@ def scrape_proxies(self, link):

if not proxies:
with self.lock:
if self.is_alive:
if self.is_alive and debug:
self.display.warning(
'Failed to grab proxies from {}'.format(link))

Expand All @@ -80,7 +80,7 @@ def scrape_extra_proxies(self):

if not proxies:
with self.lock:
if self.is_alive:
if self.is_alive and debug:
self.display.warning(
'Failed to grab proxies from {}'.format(self.extra_proxies_link))

Expand Down

0 comments on commit 0c7c6f0

Please sign in to comment.