From 9ffd320353a03ab469940f9dec87ad11a1efe9a0 Mon Sep 17 00:00:00 2001 From: ranguli Date: Thu, 27 Oct 2022 12:33:31 -0230 Subject: [PATCH] Fix PyPI scraping --- aprsd/cmds/list_plugins.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aprsd/cmds/list_plugins.py b/aprsd/cmds/list_plugins.py index 943680a..e8f448d 100644 --- a/aprsd/cmds/list_plugins.py +++ b/aprsd/cmds/list_plugins.py @@ -174,7 +174,7 @@ def show_pypi_plugins(installed_plugins, console): link = urljoin(api_url, snippet.get("href")) package = re.sub(r"\s+", " ", snippet.select_one('span[class*="name"]').text.strip()) version = re.sub(r"\s+", " ", snippet.select_one('span[class*="version"]').text.strip()) - released = re.sub(r"\s+", " ", snippet.select_one('span[class*="released"]').text.strip()) + created = re.sub(r"\s+", " ", snippet.select_one('span[class*="created"]').text.strip()) description = re.sub(r"\s+", " ", snippet.select_one('p[class*="description"]').text.strip()) emoji = ":open_file_folder:" @@ -189,7 +189,7 @@ def show_pypi_plugins(installed_plugins, console): table.add_row( f"[link={link}]{emoji}[/link] {package}", - description, version, released, installed, + description, version, created, installed, ) console.print("\n")