Skip to content

Commit

Permalink
Proxy has no get method
Browse files Browse the repository at this point in the history
  • Loading branch information
asthman committed Sep 5, 2017
1 parent 81ee1cb commit 3b923c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ipproxytool/spiders/validator/lagou.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ def start_requests(self):
'download_timeout': self.timeout,
'proxy_info': proxy,
'table': table,
'id': proxy.get('id'),
'proxy': 'http://%s:%s' % (proxy.get('ip'), proxy.get('port')),
'vali_count': proxy.get('vali_count', 0),
'id': proxy.id,
'proxy': 'http://%s:%s' % (proxy.ip, proxy.port),
'vali_count': proxy.vali_count,
},
cookies = {
'Hm_lpvt_4233e74dff0ae5bd0a3d81c6ccf756e6': '1488937030',
Expand Down

0 comments on commit 3b923c6

Please sign in to comment.