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

[Pixiv] How do I download user metadata? #2594

Closed
SamusAranX opened this issue May 15, 2022 · 1 comment
Closed

[Pixiv] How do I download user metadata? #2594

SamusAranX opened this issue May 15, 2022 · 1 comment

Comments

@SamusAranX
Copy link

I just switched from my own (now broken) pixiv downloader script to gallery-dl and it's great so far. My only issue is that I can't find a configuration option to make gallery-dl download a user's entire profile metadata.

Here's what my own script put out:

{
	"user": {
		"id": 1234567890,
		"name": "example",
		"account": "user_example",
		"profile_image_urls": {
			"medium": "https://i.pximg.net/user-profile/img/..."
		},
		"comment": "comment goes here",
		"is_followed": false
	},
	"profile": {
		"webpage": null,
		"gender": "",
		"birth": "",
		"birth_day": "",
		"birth_year": 0,
		"region": "",
		"address_id": 0,
		"country_code": "",
		"job": "",
		"job_id": 0,
		"total_follow_users": 0,
		"total_mypixiv_users": 0,
		"total_illusts": 0,
		"total_manga": 0,
		"total_novels": 0,
		"total_illust_bookmarks_public": 0,
		"total_illust_series": 0,
		"total_novel_series": 0,
		"background_image_url": null,
		"twitter_account": "example",
		"twitter_url": "https://twitter.com/example",
		"pawoo_url": null,
		"is_premium": false,
		"is_using_custom_profile_image": true
	},
	"profile_publicity": {
		"gender": "public",
		"region": "public",
		"birth_day": "public",
		"birth_year": "public",
		"job": "public",
		"pawoo": true
	},
	"workspace": {
		"pc": "",
		"monitor": "",
		"tool": "",
		"scanner": "",
		"tablet": "",
		"mouse": "",
		"printer": "",
		"desktop": "",
		"music": "",
		"desk": "",
		"chair": "",
		"comment": "",
		"workspace_image_url": null
	}
}

and here's what gallery-dl outputs, but only if I have it download avatars or backgrounds as well:

{
    "category": "pixiv",
    "create_date": null,
    "date": null,
    "height": 0,
    "id": "avatar",
    "num": 0,
    "page_count": 1,
    "rating": "General",
    "sanity_level": 0,
    "subcategory": "user",
    "suffix": "",
    "tags": [],
    "title": "avatar",
    "type": "avatar",
    "user": {
        "account": "user_example",
        "comment": "comment goes here",
        "id": 1234567890,
        "is_followed": false,
        "name": "example",
        "profile_image_urls": {
            "medium": "https://i.pximg.net/user-profile/img/..."
        }
    },
    "width": 0,
    "x_restrict": 0
}

Is there an option that I missed?

@mikf
Copy link
Owner

mikf commented May 17, 2022

Pixiv has a metadata option that fetches extended user profile data.

It currently only works for /artworks URLs, and it previously only slightly extended the user field. With commit 4005171 it now also provides all the other fields (profile, profile_publicity, workspace).

@mikf mikf closed this as completed May 27, 2022
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