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 <[email protected]>
  • Loading branch information
ZhiyuanChen committed Jul 29, 2024
1 parent f5c0acd commit e4e1461
Show file tree
Hide file tree
Showing 2 changed files with 3 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
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ dependencies = [
"beautifulsoup4",
"bs4",
"lxml",
"piexif",
"pillow",
"pyyaml",
"requests",
Expand Down

0 comments on commit e4e1461

Please sign in to comment.