更新.gitignore,添加临时文件夹排除;修改app-ollama.py以支持新的数据源和提示信息;新增satnogs.html文件以提供站点数据

This commit is contained in:
严浩
2025-01-14 14:54:11 +08:00
parent 653bd96d35
commit ae42c58aed
3 changed files with 207 additions and 8 deletions

View File

@ -24,16 +24,28 @@ graph_config = {
# "headless": False,
}
# smart_scraper_graph = SmartScraperGraph(
# # prompt="List all article titles on the page",
# prompt="列出页面上的所有文章标题",
# source="https://www.aivi.fyi/",
# config=graph_config
# )
# #############################
prompt="List all article titles on the page"
prompt="列出页面上的所有文章标题"
source="https://www.aivi.fyi/"
# #############################
prompt="List all Stations on the page."
source="https://network.satnogs.org/stations/"
# #############################
# prompt="列出页面上的所有站点。"
prompt="列出页面上的所有站点以及站点信息"
# prompt="列出页面上的所有站点以及站点信息。antennas需要是一个数组。"
source=""
with open('source/satnogs.html', 'r', encoding='utf-8') as file:
source = file.read()
smart_scraper_graph = SmartScraperGraph(
prompt="List all Stations on the page. the data is in tbody",
source="https://network.satnogs.org/stations/",
prompt=prompt,
source=source,
config=graph_config
)