perf: force ad blocking on the MCP server and when the AI mode is activated on CLI
This commit is contained in:
@@ -53,6 +53,8 @@ def __Request_and_Save(
|
||||
if not output_path.is_absolute():
|
||||
output_path = Path.cwd() / output_file
|
||||
|
||||
if ai_targeted:
|
||||
kwargs.setdefault("block_ads", True)
|
||||
response = fetcher_func(url, **kwargs)
|
||||
Convertor.write_content_to_file(response, str(output_path), css_selector, main_content_only=ai_targeted)
|
||||
log.info(f"Content successfully saved to '{output_path}'")
|
||||
|
||||
Reference in New Issue
Block a user