昨天只有一本的是这样的,刚刚重新试了一下,多了两本,再次下载还是有错误信息。
yin@instance-2:~/free-PACKT-eBooks-Crawler$ python3
main.pyTrying to load cookies...
Choose an option:
1. Claim today's free ebook
2. Download all your ebooks
3. Auto claim free ebooks
0. Quit
Your choice: 2
Start download your eBooks...
Unity 5.x Shaders and Effects Cookb has been saved!
Trying next...
Learning AWS has been saved!
Trying next...
Practical Linux Security Cookb already existed!
Traceback (most recent call last):
File "
main.py", line 165, in <module>
options[step]()
File "
main.py", line 120, in save_ebooks
save_dir = get_save_path(name)
File "
main.py", line 34, in get_save_path
save_path = os.path.join(SAVE_DIR, name)
File "/usr/lib/python3.5/
posixpath.py", line 89, in join
genericpath._check_arg_types('join', a, *p)
File "/usr/lib/python3.5/
genericpath.py", line 143, in _check_arg_types
(funcname, s.__class__.__name__)) from None
TypeError: join() argument must be str or bytes, not 'NoneType'