Skip to content

Commit

Permalink
fix bugs in grab
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackon committed Aug 7, 2015
1 parent 8c2dcb8 commit 0c0ba29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crawler/grab.py
Expand Up @@ -37,7 +37,7 @@ def profile(sids, url_ptn, validate, dir='cache/profile', website=''):
filename = '{}/{}.html'.format(dir, sid)
log.info(log_str.format(i+1, sid))
content = request(url, filename=filename)
log.info(validate(content))
log.info(validate(content, sid))
except Exception as e:
log.error(e)

Expand Down

0 comments on commit 0c0ba29

Please sign in to comment.