bs4-script.py

This commit is contained in:
严浩
2025-01-16 15:57:50 +08:00
parent c7f165439c
commit b6809e90ed
6 changed files with 1711 additions and 189 deletions

View File

@ -24,25 +24,22 @@ graph_config = {
# "headless": False,
}
# #############################
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 = "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 = "列出页面上的所有站点以及站点信息"
# prompt="列出页面上的所有站点以及站点信息。antennas需要是一个数组。"
source=""
with open('source/satnogs.html', 'r', encoding='utf-8') as file:
source = file.read()
# ************************************************
# Create the SmartScraperGraph instance and run it
# ************************************************