From ae42c58aed7ed6d933e4bcf42fb526dc004e62d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= Date: Tue, 14 Jan 2025 14:54:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0.gitignore=EF=BC=8C=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E4=B8=B4=E6=97=B6=E6=96=87=E4=BB=B6=E5=A4=B9=E6=8E=92?= =?UTF-8?q?=E9=99=A4=EF=BC=9B=E4=BF=AE=E6=94=B9app-ollama.py=E4=BB=A5?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E6=96=B0=E7=9A=84=E6=95=B0=E6=8D=AE=E6=BA=90?= =?UTF-8?q?=E5=92=8C=E6=8F=90=E7=A4=BA=E4=BF=A1=E6=81=AF=EF=BC=9B=E6=96=B0?= =?UTF-8?q?=E5=A2=9Esatnogs.html=E6=96=87=E4=BB=B6=E4=BB=A5=E6=8F=90?= =?UTF-8?q?=E4=BE=9B=E7=AB=99=E7=82=B9=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + app-ollama.py | 28 +++++-- source/satnogs.html | 186 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 207 insertions(+), 8 deletions(-) create mode 100644 source/satnogs.html diff --git a/.gitignore b/.gitignore index 4ed417e..e837ca8 100644 --- a/.gitignore +++ b/.gitignore @@ -68,3 +68,4 @@ logs/ .Trashes ehthumbs.db Thumbs.db +_tmp/ \ No newline at end of file diff --git a/app-ollama.py b/app-ollama.py index 164fc42..c490827 100644 --- a/app-ollama.py +++ b/app-ollama.py @@ -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 ) diff --git a/source/satnogs.html b/source/satnogs.html new file mode 100644 index 0000000..39f533a --- /dev/null +++ b/source/satnogs.html @@ -0,0 +1,186 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
IDNameLocationTotalFutureAntennasOwner
+ + + 2 + + + + KB9JHU + + + + + EM69uf + + @280m + + + + 65779 + + + + 0 + + + + + Cross Yagi (UHF) + + + + Cross Yagi (VHF) + + + + + + Corey Shields + + +
+ + + 6 + + + + Apomahon + + + + + KM18ub + + @104m + + + + 353519 + + + + 147 + + + + + Patch (UHF) + + + + + + Dimitris Papadeas + + +
+ + + 34 + + + + M0SZT + + + + + IO82vx + + @100m + + + + 4635 + + + + 0 + + + + + Quadrafilar (VHF) + + + + + + Carl Plant + + +
\ No newline at end of file