Python scraper based on AI
Python ai-crawlerai-scrapingai-searchcrawlerdata-extractionfirecrawl-alternativelarge-language-modelllmmarkdownragscrapingscraping-pythonweb-crawlerweb-crawlersweb-dataweb-data-extractionweb-scraperweb-scrapingweb-searchwebscraping
fix: fixed conf.py path and docstrings
PeriniMb183e9873083
diff --git a/docs/source/conf.py b/docs/source/conf.pyindex 1c04aa8c..0a96fc06 100644--- a/docs/source/conf.py+++ b/docs/source/conf.py@@ -10,7 +10,8 @@import os, sys-sys.path.insert(0, os.path.abspath('../../yosoai'))+# import all the modules+sys.path.insert(0, os.path.abspath('../../'))project = 'yosoai'copyright = '2024, Marco Vinciguerra'diff --git a/yosoai/class_creator.py b/yosoai/class_creator.pyindex 9785fdb6..43d64224 100644--- a/yosoai/class_creator.py+++ b/yosoai/class_creator.py@@ -6,10 +6,10 @@ def create_class(data_dict: dict):Args:data_dict (dict): A dictionary containing the description of the prompt.- It should have the following keys:- - "title" (str): The title of the field.- - "type" (str): The type of the field.- - "description" (str): The description of the field.+ It should have the following keys:+ - "title" (str): The title of the field.+ - "type" (str): The type of the field.+ - "description" (str): The description of the field.Returns:Nonediff --git a/yosoai/request.py b/yosoai/request.pyindex 7c71166f..1ec658c7 100644--- a/yosoai/request.py+++ b/yosoai/request.py@@ -8,14 +8,10 @@ def send_request(values: list[dict]) -> dict:Args:values (list[dict]): Settings of the request.- Format:- [- {- "title": str,- "type": str,- "description": str- }- ]+ Each element of the list should have the following keys:+ - "title" (str): The title of the field.+ - "type" (str): The type of the field.+ - "description" (str): The description of the field.Returns:dict: The result of the request to openai.