Skip to content

[Bellazon] KeyError: 'url', when processing a specific thread #8397

@taskhawk

Description

@taskhawk

This specific thread throws the following error:

https://www.bellazon.com/main/topic/56-candids/

$ gallery-dl -K "https://www.bellazon.com/main/topic/56-candids/"
[gallery-dl][debug] Version 1.30.9
[gallery-dl][debug] Python 3.12.3 - Linux-6.14.0-33-generic-x86_64-with-glibc2.39
[gallery-dl][debug] requests 2.32.3 - urllib3 2.4.0
[gallery-dl][debug] Configuration Files []
[gallery-dl][debug] Starting KeywordJob for 'https://www.bellazon.com/main/topic/56-candids/'
[bellazon][debug] Using BellazonThreadExtractor for 'https://www.bellazon.com/main/topic/56-candids/'
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): www.bellazon.com:443
[urllib3.connectionpool][debug] https://www.bellazon.com:443 "GET /main/topic/56-candids/page/9999/ HTTP/1.1" 303 0
[urllib3.connectionpool][debug] https://www.bellazon.com:443 "GET /main/topic/56-candids/page/658/ HTTP/1.1" 200 None
[bellazon][error] An unexpected error occurred: KeyError - 'url'. Please run gallery-dl again with the --verbose flag, copy its output and report this issue on https://github.com/mikf/gallery-dl/issues .
[bellazon][debug] 
Traceback (most recent call last):
  File "/home/user/.gallery-dl/lib/python3.12/site-packages/gallery_dl/job.py", line 152, in run
    for msg in extractor:
  File "/home/user/.gallery-dl/lib/python3.12/site-packages/gallery_dl/extractor/bellazon.py", line 40, in items
    for post in self.posts():
  File "/home/user/.gallery-dl/lib/python3.12/site-packages/gallery_dl/extractor/bellazon.py", line 213, in posts
    self.kwdict["thread"] = self._parse_thread(page)
                            ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/.gallery-dl/lib/python3.12/site-packages/gallery_dl/extractor/bellazon.py", line 133, in _parse_thread
    url_a = author["url"]
            ~~~~~~^^^^^^^
KeyError: 'url'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions