Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot Download From User #9

Open
BN898 opened this issue Jun 8, 2020 · 1 comment
Open

Cannot Download From User #9

BN898 opened this issue Jun 8, 2020 · 1 comment

Comments

@BN898
Copy link

BN898 commented Jun 8, 2020

Microsoft Windows [Version 10.0.18363.836]
(c) 2019 Microsoft Corporation. All rights reserved.

D:\Downloads\deviantart-scraper-master\deviantart-scraper-master>$ python main.py artwork
'$' is not recognized as an internal or external command,
operable program or batch file.

D:\Downloads\deviantart-scraper-master\deviantart-scraper-master>python main.py artwork

there are 1 users

download artworks for user TheMightFenek

Traceback (most recent call last):
File "main.py", line 54, in
main()
File "main.py", line 40, in main
download_users(api, config, args.option)
File "main.py", line 11, in download_users
result = api.save_users_artworks(config.users, config.save_dir)
File "D:\Downloads\deviantart-scraper-master\deviantart-scraper-master\lib\deviantart.py", line 204, in save_users_artworks
files = self.save_user_artworks(user, dir_path)
File "D:\Downloads\deviantart-scraper-master\deviantart-scraper-master\lib\deviantart.py", line 180, in save_user_artworks
files = pool.map(partial(self.save_artwork, dir_path), artworks)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.1008.0_x64__qbz5n2kfra8p0\lib\multiprocessing\pool.py", line 364, in map
return self._map_async(func, iterable, mapstar, chunksize).get()
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.1008.0_x64__qbz5n2kfra8p0\lib\multiprocessing\pool.py", line 771, in get
raise self._value
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.1008.0_x64__qbz5n2kfra8p0\lib\multiprocessing\pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.1008.0_x64__qbz5n2kfra8p0\lib\multiprocessing\pool.py", line 48, in mapstar
return list(map(*args))
File "D:\Downloads\deviantart-scraper-master\deviantart-scraper-master\lib\deviantart.py", line 154, in save_artwork
download_url = self._download_url(artwork)
File "D:\Downloads\deviantart-scraper-master\deviantart-scraper-master\lib\deviantart.py", line 111, in _download_url
url = next(a['src'] for a in artwork['files'] if a['type']=='fullview')
KeyError: 'files'

For some reason, I cannot seem to get this to work. Am I missing something in this?

@mxmlnkn
Copy link

mxmlnkn commented Sep 26, 2020

I don't think like you are missing anything. Looks like the deviantart API changed. E.g. the key files is now something like media. The script is simply outdated it seems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants