更新.gitignore,添加临时文件夹排除;修改app-ollama.py以支持新的数据源和提示信息;新增satnogs.html文件以提供站点数据
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@ -68,3 +68,4 @@ logs/
|
||||
.Trashes
|
||||
ehthumbs.db
|
||||
Thumbs.db
|
||||
_tmp/
|
@ -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
|
||||
)
|
||||
|
||||
|
186
source/satnogs.html
Normal file
186
source/satnogs.html
Normal file
@ -0,0 +1,186 @@
|
||||
<table class="table table-hover my-2">
|
||||
<thead class="bg-light">
|
||||
<th>ID</th>
|
||||
<th>Name</th>
|
||||
<th>Location</th>
|
||||
<th>Total</th>
|
||||
<th>Future</th>
|
||||
<th>Antennas</th>
|
||||
<th>Owner</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr class="station-row clickable-row" data-href="/stations/2/">
|
||||
<td>
|
||||
<a href="/stations/2/">
|
||||
<span class="station
|
||||
|
||||
badge badge-online
|
||||
"
|
||||
data-toggle="tooltip"
|
||||
data-placement="bottom"
|
||||
title="
|
||||
Seen 0 minutes ago
|
||||
">
|
||||
2
|
||||
</span>
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
KB9JHU
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
<span data-toggle="tooltip" data-placement="bottom"
|
||||
title="39.236°, -86.305°">
|
||||
EM69uf
|
||||
|
||||
@280m
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<a href="/observations/?station=2" class="badge badge-success badge-pill" data-placement="bottom">
|
||||
65779
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="/observations/?future=1&good=0&bad=0&unknown=0&failed=0&station=2" class="badge badge-info badge-pill">
|
||||
0
|
||||
</a>
|
||||
</td>
|
||||
<td class="antennas">
|
||||
|
||||
<span class="antenna-pill" data-toggle="tooltip" data-placement="bottom"
|
||||
title=" 430.0000 MHz - 470.0000 MHz
">
|
||||
Cross Yagi (UHF)
|
||||
</span>
|
||||
|
||||
<span class="antenna-pill" data-toggle="tooltip" data-placement="bottom"
|
||||
title=" 135.0000 MHz - 148.0000 MHz
">
|
||||
Cross Yagi (VHF)
|
||||
</span>
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
<a href="/users/cshields/">
|
||||
Corey Shields
|
||||
</a>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr class="station-row clickable-row" data-href="/stations/6/">
|
||||
<td>
|
||||
<a href="/stations/6/">
|
||||
<span class="station
|
||||
|
||||
badge badge-online
|
||||
"
|
||||
data-toggle="tooltip"
|
||||
data-placement="bottom"
|
||||
title="
|
||||
Seen 0 minutes ago
|
||||
">
|
||||
6
|
||||
</span>
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
Apomahon
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
<span data-toggle="tooltip" data-placement="bottom"
|
||||
title="38.048°, 23.739°">
|
||||
KM18ub
|
||||
|
||||
@104m
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<a href="/observations/?station=6" class="badge badge-success badge-pill" data-placement="bottom">
|
||||
353519
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="/observations/?future=1&good=0&bad=0&unknown=0&failed=0&station=6" class="badge badge-info badge-pill">
|
||||
147
|
||||
</a>
|
||||
</td>
|
||||
<td class="antennas">
|
||||
|
||||
<span class="antenna-pill" data-toggle="tooltip" data-placement="bottom"
|
||||
title=" 400.0000 MHz - 470.0000 MHz
">
|
||||
Patch (UHF)
|
||||
</span>
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
<a href="/users/BOCTOK-1/">
|
||||
Dimitris Papadeas
|
||||
</a>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr class="station-row clickable-row" data-href="/stations/34/">
|
||||
<td>
|
||||
<a href="/stations/34/">
|
||||
<span class="station
|
||||
|
||||
badge badge-online
|
||||
"
|
||||
data-toggle="tooltip"
|
||||
data-placement="bottom"
|
||||
title="
|
||||
Seen 0 minutes ago
|
||||
">
|
||||
34
|
||||
</span>
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
M0SZT
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
<span data-toggle="tooltip" data-placement="bottom"
|
||||
title="52.997°, -2.195°">
|
||||
IO82vx
|
||||
|
||||
@100m
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<a href="/observations/?station=34" class="badge badge-success badge-pill" data-placement="bottom">
|
||||
4635
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="/observations/?future=1&good=0&bad=0&unknown=0&failed=0&station=34" class="badge badge-info badge-pill">
|
||||
0
|
||||
</a>
|
||||
</td>
|
||||
<td class="antennas">
|
||||
|
||||
<span class="antenna-pill" data-toggle="tooltip" data-placement="bottom"
|
||||
title=" 135.0000 MHz - 148.0000 MHz
">
|
||||
Quadrafilar (VHF)
|
||||
</span>
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
<a href="/users/m6lzt/">
|
||||
Carl Plant
|
||||
</a>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
Reference in New Issue
Block a user