Malshare/MalShare-Toolkit — pull request #4 by tklengyel (2014-02-08 15:12:25+00:00)
Title: Fix various bugs in the wget_malshare_daily script

Trying to use the wget_malshare_daily script resulted in various errors thrown by Python and the files downloaded containing nothing but the string "No API key provided". This PR fixes both issues.

Traceback (most recent call last):
File "wget_malshare_daily", line 78, in pull_file
open(os.path.join(args.outfolder, file_hash),"wb").write(sample)
NameError: global name 'args' is not defined
2014-02-08 16:05:02,451 ERROR:
Traceback (most recent call last):
File "wget_malshare_daily", line 78, in pull_file
open(os.path.join(args.outfolder, file_hash),"wb").write(sample)
NameError: global name 'args' is not defined
2014-02-08 16:05:02,451 ERROR:("global name 'args' is not defined",)
Traceback (most recent call last):
File "wget_malshare_daily", line 78, in pull_file
open(os.path.join(args.outfolder, file_hash),"wb").write(sample)
NameError: global name 'args' is not defined
2014-02-08 16:05:02,452 ERROR:global name 'args' is not defined
Traceback (most recent call last):
File "wget_malshare_daily", line 78, in pull_file
open(os.path.join(args.outfolder, file_hash),"wb").write(sample)
NameError: global name 'args' is not defined