Scrapegraph-ai icon indicating copy to clipboard operation
Scrapegraph-ai copied to clipboard

PDFScraperGraph does not work

Open milad1378yz opened this issue 1 year ago • 1 comments

based on this code: from scrapegraphai.graphs.pdf_scraper_graph import PDFScraperGraph from scrapegraphai.utils import prettify_exec_info

OPENAI_API_KEY = "sk-" graph_config = {"llm": {"api_key": OPENAI_API_KEY, "model": "gpt-3.5-turbo"}}

smart_scraper_graph = PDFScraperGraph( "List me scope 1 emissions in the document.", "test.pdf", graph_config )

result = smart_scraper_graph.run() print(result)

I am getting the following error: File "C:\Users\milad\OneDrive - UBC\Desktop\works\venv\lib\site-packages\scrapegraphai\nodes\fetch_node.py", line 58, in execute input_keys = self.get_input_keys(state) File "C:\Users\milad\OneDrive - UBC\Desktop\works\venv\lib\site-packages\scrapegraphai\nodes\base_node.py", line 90, in get_input_keys raise ValueError( ValueError: Error parsing input keys for Fetch: No state keys matched the expression.

milad1378yz avatar May 07 '24 21:05 milad1378yz

you should open by yourself the "test.pdf" file

VinciGit00 avatar May 08 '24 06:05 VinciGit00

hi, we fixed it, in the next days it will go to the main

VinciGit00 avatar May 09 '24 19:05 VinciGit00