Python scraper based on AI
Python ai-crawlerai-scrapingai-searchcrawlerdata-extractionfirecrawl-alternativelarge-language-modelllmmarkdownragscrapingscraping-pythonweb-crawlerweb-crawlersweb-dataweb-data-extractionweb-scraperweb-scrapingweb-searchwebscraping
add test
Marco Vinciguerrada0b744443ba
diff --git a/tests/graphs/search_link_ollama.py b/tests/graphs/search_link_ollama.pynew file mode 100644index 00000000..3b41f699--- /dev/null+++ b/tests/graphs/search_link_ollama.py@@ -0,0 +1,26 @@+from scrapegraphai.graphs import SearchLinkGraph+from scrapegraphai.utils import prettify_exec_info++def test_smart_scraper_pipeline():+ graph_config = {+ "llm": {+ "model": "ollama/llama3",+ "temperature": 0,+ "format": "json",+ },+ "embeddings": {+ "model": "ollama/nomic-embed-text",+ "temperature": 0,+ },+ "verbose": True,+ "headless": False+ }++ smart_scraper_graph = SearchLinkGraph(+ source="https://sport.sky.it/nba?gr=www",+ config=graph_config+ )++ result = smart_scraper_graph.run()++ assert result is not None