1
0
mirror of https://github.com/craigerl/aprsd.git synced 2025-09-03 21:57:47 -04:00

removed BeautifulSoup usage

This commit is contained in:
Hemna 2025-01-06 17:27:39 -05:00
parent 275e33538d
commit a21432fb24
2 changed files with 0 additions and 19 deletions

View File

@ -147,7 +147,6 @@ To install `aprsd`, use Pip:
send-message Send a message to a callsign via APRS_IS. send-message Send a message to a callsign via APRS_IS.
server Start the aprsd server gateway process. server Start the aprsd server gateway process.
version Show the APRSD version. version Show the APRSD version.
webchat Web based HAM Radio chat program!
### Commands ### Commands

View File

@ -9,7 +9,6 @@ from traceback import print_tb
import click import click
import requests import requests
from bs4 import BeautifulSoup
from rich.console import Console from rich.console import Console
from rich.table import Table from rich.table import Table
from rich.text import Text from rich.text import Text
@ -158,23 +157,6 @@ def show_built_in_plugins(console):
console.print(table) console.print(table)
def _get_pypi_packages_OLD():
query = "aprsd"
snippets = []
s = requests.Session()
c = Console()
for page in range(1, 3):
params = {"q": query, "page": page}
r = s.get(PYPI_URL, params=params)
c.print(f"r = {r.text}")
soup = BeautifulSoup(r.text, "html.parser")
snippets += soup.select('a[class*="snippet"]')
if not hasattr(s, "start_url"):
s.start_url = r.url.rsplit("&page", maxsplit=1).pop(0)
return snippets
def _get_pypi_packages(): def _get_pypi_packages():
if simple_r := requests.get( if simple_r := requests.get(
"https://pypi.org/simple", "https://pypi.org/simple",