niqdev / packtpub-crawler

Download your daily free Packt Publishing eBook https://www.packtpub.com/packt/offers/free-learning
MIT License
755 stars 178 forks source link

invalid syntax error #58

Closed lcorsini closed 7 years ago

lcorsini commented 7 years ago

I've placed my credentials in prod.cfg when I run python script/spider.py --config config/prod.cfg --claimOnly I get this error:

Traceback (most recent call last): File "script/spider.py", line 7, in from utils import ip_address, config_file File "/home/csllc4/packtpub-crawler/script/utils.py", line 16 print '[-] GET {0} | {1}'.format(response.status_code, response.url) ^ SyntaxError: invalid syntax

lcorsini commented 7 years ago

uhmm that error was from my natted virtual machine. Tried from a VPS with public address and it's working

niqdev commented 7 years ago

Hi, sorry for the late response, if is working, can I close the issue or do you have any other problem? Thanks

lcorsini commented 7 years ago

you can close, I cannot reproduce the error on any other machine than this (an archlinux VM) so probably is some problem here