Skip to content

Python scraper based on AI

Merge branch 'pre/beta' into nDeep

Mayur Bhosale1e0b2f7e7083
diff --cc examples/openai/deep_scraper_openai.py
index 112d77ae,dfd1e29d..9c257ec3
--- a/examples/openai/deep_scraper_openai.py
+++ b/examples/openai/deep_scraper_openai.py
@@@ -19,10 -19,9 +19,10 @@@ openai_key = os.getenv("OPENAI_APIKEY"
graph_config = {
"llm": {
"api_key": openai_key,
- "model": "gpt-4",
+ "model": "gpt-3.5-turbo",
},
"verbose": True,
+ "max_depth": 1
}
# ************************************************
@@@ -30,9 -29,9 +30,9 @@@
# ************************************************
deep_scraper_graph = DeepScraperGraph(
- prompt="List me all the job titles and detailed job description.",
+ prompt="List me all the contacts",
# also accepts a string with the already downloaded HTML code
- source="https://davittoriogift.com/en/home/a",
+ source="https://www.uber.com/us/en/careers/list/?query=",
config=graph_config
)