We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The Crawler class takes a classname for the parser class, and a dict of parser_args to instantiate the parser:
class Crawler: def __init__( ... parser_cls=Parser, extra_parser_args=None, ... ): ... parser_kwargs = {} if extra_parser_args is None else extra_parser_args self.parser = parser_cls(parser_threads, self.signal, self.session, **parser_kwargs)
Yet the parser class doens't accept any kwargs. It's constructor is:
class Parser(ThreadPool): def __init__(self, thread_num, signal, session):
Why is this the case? It causes problems when passing extra kwargs. For example
The text was updated successfully, but these errors were encountered:
fix Parser class does not accept kwargs, hellock#128
4273064
Signed-off-by: Zhiyuan Chen <this@zyc.ai>
Please let me know if 4273064 can fix your issue
Sorry, something went wrong.
fix Parser class does not accept kwargs, #128
393f843
e4e1461
No branches or pull requests
The Crawler class takes a classname for the parser class, and a dict of parser_args to instantiate the parser:
Yet the parser class doens't accept any kwargs. It's constructor is:
Why is this the case? It causes problems when passing extra kwargs. For example
The text was updated successfully, but these errors were encountered: