use logger instead of print in modules
This commit is contained in:
parent
d576fd19c8
commit
ca7fd3c7f2
4 changed files with 5 additions and 8 deletions
|
|
@ -38,7 +38,7 @@ class IndexPage(BasePage):
|
|||
url = title.attrib['href']
|
||||
m = re.match('^http://www.pluzz.fr/([^/]+)\.html$', url)
|
||||
if not m:
|
||||
print ':( %s' % url
|
||||
self.logger.debug('url %s does not match' % url)
|
||||
continue
|
||||
_id = m.group(1)
|
||||
video = PluzzVideo(_id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue