Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

DC Fandom : AssertionError

Open
#3 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
backend

Research direction

Reproduce the failure using the DC Fandom site with Site set to "dc" and Categories set to "Comics". Start in fandom_scraper/main.py at parse_infobox around line 373, where the assertion fails after the reported infobox messages. Done means the scraper handles this input without raising AssertionError.

Written by the indexing model from the issue text.

Description

Hey there !

Just wanna ask you if you know what could be wrong :

I tried with the dc fandom, replacing the Site with "dc" and Categories with "Comics", when i run the script I got an AssertionError raised.

Don't really know what to do about it :/

Thank's, have a good day :)

no infobox name: notes ['First appearance of Liza Warner. She will not make another appearance until 2006 in c|Infinite Crisis Vol 1 6. Following that, she becomes a recurring character in the vnst|The All-New Atom Vol 1.'] no infobox name: trivia ["This comic book was on the stands when ''WP|Police Woman |Police Woman'', starring WP|Angie Dickinson was being broadcast."] Traceback (most recent call last): File "C:\Users\Yann\Desktop\DEVYP\fandomparser\fandom_scraper\main.py", line 514, in <module> wi.build() File "C:\Users\Yann\Desktop\DEVYP\fandomparser\fandom_scraper\main.py", line 109, in build self.parse() File "C:\Users\Yann\Desktop\DEVYP\fandomparser\fandom_scraper\main.py", line 273, in parse self.unsorted_infoboxes = self.get_parsed_infoboxes() File "C:\Users\Yann\Desktop\DEVYP\fandomparser\fandom_scraper\main.py", line 439, in get_parsed_infoboxes infoboxes = {k: self.parse_infobox( File "C:\Users\Yann\Desktop\DEVYP\fandomparser\fandom_scraper\main.py", line 439, in <dictcomp> infoboxes = {k: self.parse_infobox( File "C:\Users\Yann\Desktop\DEVYP\fandomparser\fandom_scraper\main.py", line 373, in parse_infobox assert json_lines[i+1].startswith('*') AssertionError

Dominant language
Python
Stars
13
Forks
9
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ds10/fandom_scraper

All issues in ds10/fandom_scraper

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.