Skip to content

Commit

Permalink
fix Parser class does not accept kwargs, #128
Browse files Browse the repository at this point in the history
Signed-off-by: Zhiyuan Chen <this@zyc.ai>
  • Loading branch information
ZhiyuanChen committed Jul 29, 2024
1 parent f5c0acd commit 4273064
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions icrawler/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ class Parser(ThreadPool):
lock: A threading.Lock object.
"""

def __init__(self, thread_num, signal, session):
def __init__(self, thread_num, signal, session, in_queue=None, out_queue=None, name="parser"):
"""Init Parser with some shared variables."""
super().__init__(thread_num, name="parser")
super().__init__(thread_num, in_queue=in_queue, out_queue=out_queue, name=name)
self.signal = signal
self.session = session

Expand Down

0 comments on commit 4273064

Please sign in to comment.