Skip to content

Python scraper based on AI

Update fetch_node.py

Marco Vinciguerrae9c8402091b5
diff --git a/scrapegraphai/nodes/fetch_node.py b/scrapegraphai/nodes/fetch_node.py
index fbd94a83..4cd549a5 100644
--- a/scrapegraphai/nodes/fetch_node.py
+++ b/scrapegraphai/nodes/fetch_node.py
@@ -124,7 +124,7 @@ class FetchNode(BaseNode):
return handlers[input_type](state, input_type, source)
elif self.input == "pdf_dir":
return state
- elif not source.startswith("http") or not source.startswith("www"):
+ elif not source.startswith("http") and not source.startswith("www"):
return self.handle_local_source(state, source)
else:
return self.handle_web_source(state, source)