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

[Site feature request] Support for Kemono DMs #2008

Closed
Fukitsu opened this issue Nov 7, 2021 · 1 comment
Closed

[Site feature request] Support for Kemono DMs #2008

Fukitsu opened this issue Nov 7, 2021 · 1 comment

Comments

@Fukitsu
Copy link

Fukitsu commented Nov 7, 2021

Some artists send links to download the rewards in DMs and kemono has support for those but gallery-dl doesn't seem to be able to scrape them (as far as I know)

My config for kemono metadata is:
"postprocessors": [ { "name": "metadata", "event": "post", "filename": "info.json" } ]

It'd be good if we could save those to the metadata file.

Example https://kemono.party/patreon/user/5490657/dms

@kattjevfel
Copy link
Contributor

So I see that an option for DMs were added with c67756e, but this issue was never closed. I tried enabling it just now and it doesn't appear to be working (anymore?):

katt@main ~ » gallery-dl --ignore-config -o extractor.kemonoparty.dms=true --verbose https://kemono.party/patreon/user/3161935
[gallery-dl][debug] Version 1.20.3-dev
[gallery-dl][debug] Python 3.10.2 - Linux-5.17.0-rc1-1-mainline-x86_64-with-glibc2.33
[gallery-dl][debug] requests 2.26.0 - urllib3 1.26.8
[gallery-dl][debug] Starting DownloadJob for 'https://kemono.party/patreon/user/3161935'
[kemonoparty][debug] Using KemonopartyUserExtractor for 'https://kemono.party/patreon/user/3161935'
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): kemono.party:443
[urllib3.connectionpool][debug] https://kemono.party:443 "GET /api/patreon/user/3161935?o=0 HTTP/1.1" 200 8386
[urllib3.connectionpool][debug] https://kemono.party:443 "GET /patreon/user/3161935/dms HTTP/1.1" 200 2934
[kemonoparty][error] An unexpected error occurred: AttributeError - 'NoneType' object has no attribute 'strip'. Please run gallery-dl again with the --verbose flag, copy its output and report this issue on https://github.com/mikf/gallery-dl/issues .
[kemonoparty][debug] 
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/gallery_dl/job.py", line 79, in run
    for msg in extractor:
  File "/usr/lib/python3.10/site-packages/gallery_dl/extractor/kemonoparty.py", line 77, in items
    dms = self._extract_dms(post)
  File "/usr/lib/python3.10/site-packages/gallery_dl/extractor/kemonoparty.py", line 184, in _extract_dms
    )[0].strip()),
AttributeError: 'NoneType' object has no attribute 'strip'

mikf added a commit that referenced this issue Jan 25, 2022
@mikf mikf closed this as completed Dec 3, 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

3 participants