Skip to content

Commit

Permalink
removed BeautifulSoup usage
Browse files Browse the repository at this point in the history
  • Loading branch information
hemna committed Jan 6, 2025
1 parent 275e335 commit a21432f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
18 changes: 0 additions & 18 deletions aprsd/cmds/list_plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

import click
import requests
from bs4 import BeautifulSoup
from rich.console import Console
from rich.table import Table
from rich.text import Text
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit a21432f

Please sign in to comment.