更新.gitignore,添加临时文件夹排除;修改app-ollama.py以支持新的数据源和提示信息;新增satnogs.html文件以提供站点数据
This commit is contained in:
@ -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
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user