Skip to content

Commit

Permalink
fixed remaining isses
Browse files Browse the repository at this point in the history
  • Loading branch information
bigabig committed Oct 17, 2024
1 parent 2e83a07 commit b5d8ece
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions tools/crawler/spiders/forums/ilforumdegliincel.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ def parse(self, response, **kwargs):

# extract thread id
match = re.search(r"(\?t=)(\w*)", self.current_thread)
if match:
thread_id = match.group(2)
thread_id = match.group(2) if match else -1

# find the number of pages of this thread
pages_element = response.css(
Expand Down
3 changes: 1 addition & 2 deletions tools/crawler/spiders/forums/ilforumdeibrutti.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ def parse(self, response, **kwargs):

# extract thread id
match = re.search(r"(\?t=)(\w*)", self.current_thread)
if match:
thread_id = match.group(2)
thread_id = match.group(2) if match else -1

# find the number of pages of this thread
pages_element = response.css(
Expand Down
3 changes: 1 addition & 2 deletions tools/crawler/spiders/forums/unbruttoforum.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ def parse(self, response, **kwargs):

# extract thread id
match = re.search(r"(\?t=)(\w*)", self.current_thread)
if match:
thread_id = match.group(2)
thread_id = match.group(2) if match else -1

# find the number of pages of this thread
pages_element = response.css(
Expand Down

0 comments on commit b5d8ece

Please sign in to comment.