Python scraper based on AI
Python ai-crawlerai-scrapingai-searchcrawlerdata-extractionfirecrawl-alternativelarge-language-modelllmmarkdownragscrapingscraping-pythonweb-crawlerweb-crawlersweb-dataweb-data-extractionweb-scraperweb-scrapingweb-searchwebscraping
add new tests
Marco Vinciguerracec5537f2ae7
diff --git a/pyproject.toml b/pyproject.tomlindex f0b86b3f..3df0e6bd 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -5,7 +5,6 @@ name = "scrapegraphai"version = "1.14.0b1"-description = "A web scraping library based on LangChain which uses LLM and direct graph logic to create scraping pipelines."authors = [diff --git a/scrapegraphai/nodes/__init__.py b/scrapegraphai/nodes/__init__.pyindex aeb52ee7..856438cd 100644--- a/scrapegraphai/nodes/__init__.py+++ b/scrapegraphai/nodes/__init__.py@@ -4,7 +4,6 @@ __init__.py file for node folderfrom .base_node import BaseNodefrom .fetch_node import FetchNode-from .conditional_node import ConditionalNodefrom .get_probable_tags_node import GetProbableTagsNodefrom .generate_answer_node import GenerateAnswerNodefrom .parse_node import ParseNodediff --git a/tests/graphs/scrape_plain_text_llama3_test.py b/tests/graphs/scrape_plain_text_llama3.1_test.pysimilarity index 86%rename from tests/graphs/scrape_plain_text_llama3_test.pyrename to tests/graphs/scrape_plain_text_llama3.1_test.pyindex 93045163..6659c692 100644--- a/tests/graphs/scrape_plain_text_llama3_test.py+++ b/tests/graphs/scrape_plain_text_llama3.1_test.py@@ -26,15 +26,10 @@ def graph_config():"""return {"llm": {- "model": "ollama/llama3",+ "model": "ollama/llama3.1","temperature": 0,"format": "json","base_url": "http://localhost:11434",- },- "embeddings": {- "model": "ollama/nomic-embed-text",- "temperature": 0,- "base_url": "http://localhost:11434",}}diff --git a/tests/graphs/scrape_plain_text_mistral_test.py b/tests/graphs/scrape_plain_text_mistral_test.pyindex b887161c..888999ab 100644--- a/tests/graphs/scrape_plain_text_mistral_test.py+++ b/tests/graphs/scrape_plain_text_mistral_test.py@@ -30,11 +30,6 @@ def graph_config():"temperature": 0,"format": "json","base_url": "http://localhost:11434",- },- "embeddings": {- "model": "ollama/nomic-embed-text",- "temperature": 0,- "base_url": "http://localhost:11434",}}diff --git a/tests/graphs/scrape_xml_ollama_test.py b/tests/graphs/scrape_xml_ollama_test.pyindex 04494543..2bc38a59 100644--- a/tests/graphs/scrape_xml_ollama_test.py+++ b/tests/graphs/scrape_xml_ollama_test.py@@ -32,11 +32,6 @@ def graph_config():"temperature": 0,"format": "json","base_url": "http://localhost:11434",- },- "embeddings": {- "model": "ollama/nomic-embed-text",- "temperature": 0,- "base_url": "http://localhost:11434",}}diff --git a/tests/graphs/script_generator_test.py b/tests/graphs/script_generator_test.pyindex bf5ada42..7bcfeea7 100644--- a/tests/graphs/script_generator_test.py+++ b/tests/graphs/script_generator_test.py@@ -18,11 +18,6 @@ def graph_config():"base_url": "http://localhost:11434","library": "beautifulsoup",},- "embeddings": {- "model": "ollama/nomic-embed-text",- "temperature": 0,- "base_url": "http://localhost:11434",- },"library": "beautifulsoup"}diff --git a/tests/graphs/search_link_ollama.py b/tests/graphs/search_link_ollama.pyindex 3b41f699..530ad2a6 100644--- a/tests/graphs/search_link_ollama.py+++ b/tests/graphs/search_link_ollama.py@@ -4,14 +4,10 @@ from scrapegraphai.utils import prettify_exec_infodef test_smart_scraper_pipeline():graph_config = {"llm": {- "model": "ollama/llama3",+ "model": "ollama/llama3.1","temperature": 0,"format": "json",},- "embeddings": {- "model": "ollama/nomic-embed-text",- "temperature": 0,- },"verbose": True,"headless": False}diff --git a/tests/graphs/smart_scraper_ernie_test.py b/tests/graphs/smart_scraper_ernie_test.pyindex 5efd8d0b..1da35790 100644--- a/tests/graphs/smart_scraper_ernie_test.py+++ b/tests/graphs/smart_scraper_ernie_test.py@@ -16,11 +16,6 @@ def graph_config():"ernie_client_id": "<ernie_client_id>","ernie_client_secret": "<ernie_client_secret>","temperature": 0.1- },- "embeddings": {- "model": "ollama/nomic-embed-text",- "temperature": 0,- "base_url": "http://localhost:11434",}}diff --git a/tests/graphs/smart_scraper_fireworks_test.py b/tests/graphs/smart_scraper_fireworks_test.pyindex 0cb91dcc..818f15b9 100644--- a/tests/graphs/smart_scraper_fireworks_test.py+++ b/tests/graphs/smart_scraper_fireworks_test.py@@ -20,11 +20,6 @@ def graph_config():"api_key": fireworks_api_key,"model": "fireworks/accounts/fireworks/models/mixtral-8x7b-instruct"},- "embeddings": {- "model": "ollama/nomic-embed-text",- "temperature": 0,- # "base_url": "http://localhost:11434", # set ollama URL arbitrarily- },"verbose": True,"headless": False,}diff --git a/tests/graphs/smart_scraper_ollama_test.py b/tests/graphs/smart_scraper_ollama_test.pyindex b35907c0..a358feb6 100644--- a/tests/graphs/smart_scraper_ollama_test.py+++ b/tests/graphs/smart_scraper_ollama_test.py@@ -16,11 +16,6 @@ def graph_config():"temperature": 0,"format": "json","base_url": "http://localhost:11434",- },- "embeddings": {- "model": "ollama/nomic-embed-text",- "temperature": 0,- "base_url": "http://localhost:11434",}}