Closed Jason-May closed 3 years ago
Does worm.json
actually exist? If you're using a regular checkout and haven't touched anything, it'd be ./leech.py examples/worm.json
ah, that's what I was doing wrong..If you'd like, I could put together a pull request for error handling in this scenario.
I looked through the code to see where exactly the JSON files were being loaded and I couldn't quite figure it out. Is it the case that the get(url) function recognizes that it's a local file, and then constructs site_class, as an anonymous function, to pass to all the other functions within download?
Thank you.
Calling the script with arguments as follows
./leech.py worm.json
I got the following tracebackIt seems like the script isn't ever reading the json file, and is instead trying to parse "worm.json" as a URL