1
0
mirror of https://github.com/craigerl/aprsd.git synced 2025-04-19 09:49:01 -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.
server Start the aprsd server gateway process.
version Show the APRSD version.
webchat Web based HAM Radio chat program!
### Commands

View File

@ -9,7 +9,6 @@ from traceback import print_tb
import click
import requests
from bs4 import BeautifulSoup
from rich.console import Console
from rich.table import Table
from rich.text import Text
@ -158,23 +157,6 @@ def show_built_in_plugins(console):
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():
if simple_r := requests.get(
"https://pypi.org/simple",