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

How to download images from deviantart or artstation by browsing #2970

Closed
eveningglow opened this issue Sep 26, 2022 · 3 comments
Closed

How to download images from deviantart or artstation by browsing #2970

eveningglow opened this issue Sep 26, 2022 · 3 comments

Comments

@eveningglow
Copy link

I tried to download images by browsing from deviantart or artstation. For example, I only wanted to download portraits, so I used commands like gallery-dl "https://www.deviantart.com/search/deviations?q=portrait" gallery-dl "https://www.artstation.com/search?sort_by=likes&query=portrait". However, these commands download the wrong images, which are not portraits. How can I download specific images by browsing from deviantart or artstation?

@mikf
Copy link
Owner

mikf commented Sep 27, 2022

Searching is kind of broken for deviantart. (#2954)


Searching on artstation should return the same result as the website does, though.

...
Never mind, the query parameter changed from q to query, so if you have a search like

https://www.artstation.com/search?query=nature

rename query to q to make it work with gallery-dl

https://www.artstation.com/search?q=nature

mikf added a commit that referenced this issue Sep 27, 2022
@eveningglow
Copy link
Author

Thank you! It works well by changing queue to q, so with URL like https://www.artstation.com/search?sort_by=relevance&q=portrait. However, it still does not work with URL like https://www.artstation.com/search?sort_by=relevance&q=portrait&medium_ids=1. I added an additional condition about medium when searching. Do I have to change medium_ids? How can I get information like this?

@mikf
Copy link
Owner

mikf commented Sep 29, 2022

Anything other than 'query/q' and 'sort_by' does not get recognized with the current version of gallery-dl, so your medium_ids=1 is just getting ignored at the moment.

I've implemented support for such filters in commit 6992d01, so this and using 'query' instead of 'q' will be fixed in the next release. (or you use/install the dev version)

mikf added a commit that referenced this issue Feb 22, 2023
(#538, #1264, #2954, #2970, #3577)

Requires login to fetch any results, since the API endpoint raises an
error for not logged in requests.

TODO: parse HTML search results
@mikf mikf closed this as completed Mar 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants