Skip to content

Python scraper based on AI

refactoring of the folder

VinciGit0063ecd3dd709f
diff --git a/commit_and_push.sh b/commit_and_push.sh
index 235d4a42..3dc39810 100755
--- a/commit_and_push.sh
+++ b/commit_and_push.sh
@@ -22,6 +22,9 @@ commit_message="$1"
# Run Pylint on the specified Python files
pylint scrapegraphai/**/*.py scrapegraphai/*.py examples/*.py tests/*.py
+#Maket the pull
+git pull
+
# Add the modified files to the Git repository
git add .
diff --git a/scrapegraphai/json_getter.py b/scrapegraphai/json_getter.py
index b1c9e199..eb3a3374 100644
--- a/scrapegraphai/json_getter.py
+++ b/scrapegraphai/json_getter.py
@@ -5,7 +5,7 @@ from tqdm import tqdm
from langchain_openai import ChatOpenAI
from langchain.prompts import PromptTemplate
from langchain_core.output_parsers import JsonOutputParser
-from .getter import _get_function
+from .scrapegraphai.getter import _get_function
from .info.dictionaries import schema_example
from .token_calculator import truncate_text_tokens
diff --git a/scrapegraphai/getter.py b/scrapegraphai/utils/getter.py
similarity index 100%
rename from scrapegraphai/getter.py
rename to scrapegraphai/utils/getter.py
diff --git a/scrapegraphai/remover.py b/scrapegraphai/utils/remover.py
similarity index 100%
rename from scrapegraphai/remover.py
rename to scrapegraphai/utils/remover.py
diff --git a/scrapegraphai/token_calculator.py b/scrapegraphai/utils/token_calculator.py
similarity index 100%
rename from scrapegraphai/token_calculator.py
rename to scrapegraphai/utils/token_calculator.py