Skip to content

738 smartscrapergraph smart scraper graphrun fetchnode object has no attribute update state #740

New issue

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

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion scrapegraphai/nodes/fetch_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def execute(self, state):
return handlers[input_type](state, input_type, source)
elif self.input == "pdf_dir":
return state
elif not source.startswith("http"):
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)
Expand Down Expand Up @@ -307,6 +307,7 @@ def handle_web_source(self, state, source):
if not document or not document[0].page_content.strip():
raise ValueError("""No HTML body content found in
the document fetched by ChromiumLoader.""")

parsed_content = document[0].page_content

if (isinstance(self.llm_model, ChatOpenAI) \
Expand Down
Loading