Python 3.x Compatibility
Just wanted to let you know I'm using this with Python 3.5, and it works almost perfectly with one trivial issue - on lines 155 and 171, req.content needs to be cast as a string, as is required by string pattern search. I don't think this will cause any issues for 2.x, so it should be a safe change.
Thanks for this awesome library!
Hi there!
Thanks for your report. I just pushed the branch content-changes Could you give it a shot with this version and let me know if that works for you as well?
Cheers mate!
Thanks for the quick response! I plugged in the new version and get the following traceback when calling api_authenticated.submit_sample() with a filepath string:
File "/mnt/win/MalwareManager/MalwrAPI.py", line 159, in submit_sample 'csrfmiddlewaretoken': soup.find('input', {'name': 'csrfmiddlewaretoken'})['value'], TypeError: 'NoneType' object is not subscriptable
I'll try and troubleshoot when I get time in the next few days.