@
whusnoopy 抱歉 我没有说清楚
>>> python
manage.py fetch -e mobile -p 'pwd' -u id_num -s -g -a -b -r
最后报错的部分结果为:
fetched 8 albums
prepare to fetch blogs
start crawl blog list page 0
Traceback (most recent call last):
File "
manage.py", line 116, in <module>
manager.run()
File "/usr/local/anaconda3/lib/python3.6/site-packages/flask_script/
__init__.py", line 417, in run
result = self.handle(argv[0], argv[1:])
File "/usr/local/anaconda3/lib/python3.6/site-packages/flask_script/
__init__.py", line 386, in handle
res = handle(*args, **config)
File "/usr/local/anaconda3/lib/python3.6/site-packages/flask_script/
commands.py", line 216, in __call__
return
self.run(*args, **kwargs)
File "
manage.py", line 41, in fetch
fetched = fetch_user(uid, fetch_status=status, fetch_gossip=gossip, fetch_album=album, fetch_blog=blog)
File "/Users/XXX/Code/Python/renrenBackup/
fetch.py", line 99, in fetch_user
fetch_blog(uid)
File "/Users/XXX/Code/Python/renrenBackup/
fetch.py", line 76, in fetch_blog
blog_count = crawl_blog.get_blogs(uid)
File "/Users/XXX/Code/Python/renrenBackup/crawl/
blog.py", line 83, in get_blogs
total = load_blog_list(cur_page, uid)
File "/Users/XXX/Code/Python/renrenBackup/crawl/
blog.py", line 26, in load_blog_list
r = crawler.get_json(config.BLOG_LIST_URL.format(uid=uid), {'curpage': page})
File "/Users/XXX/Code/Python/renrenBackup/crawl/
crawler.py", line 123, in get_json
r = json.loads(resp.text.replace(',}', '}'))
File "/usr/local/anaconda3/lib/python3.6/json/
__init__.py", line 354, in loads
return _default_decoder.decode(s)
File "/usr/local/anaconda3/lib/python3.6/json/
decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/local/anaconda3/lib/python3.6/json/
decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)