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

Add support for pulling commentary from Pixiv requests #5412

Open
BrokenEagle opened this issue Jan 20, 2023 · 0 comments · May be fixed by #5592
Open

Add support for pulling commentary from Pixiv requests #5412

BrokenEagle opened this issue Jan 20, 2023 · 0 comments · May be fixed by #5592
Labels
Source Support Upload/Source support

Comments

@BrokenEagle
Copy link
Collaborator

Right now I'm having to copy the commentary manually, and filling in the [tn]Source:[/tn] blocks as well.

Example:

Pixiv doesn't use a JSON endpoint for this, but the data is available as JSON encoded into the page itself.

  • HTML ID: __NEXT_DATA__
  • JSON path: $.props.pageProps.serverSerializedPreloadedState
    • This is an escaped string which is also JSON, i.e. the " are \" and the \ are \\
  • Sub-JSON path: $.pageCommission.requests.122459.requestProposal.requestOriginalProposal

It's also available on the <meta> twitter:description and og:description in the page HTML , although I don't know if those would potentially strip/crop information. Using the JSON I described above seems like it would be the best way to get the original data.

@nonamethanks nonamethanks added Source Support Upload/Source support and removed Feature labels Feb 1, 2023
@hdk5 hdk5 linked a pull request Nov 9, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Source Support Upload/Source support
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants