From 59505f032dc76a8a2db54b4fb077490066271c97 Mon Sep 17 00:00:00 2001 From: Richard Mwewa <74001397+rly0nheart@users.noreply.github.com> Date: Tue, 22 Feb 2022 15:07:59 +0200 Subject: [PATCH] added testpypi for v1.2.0 --- plugins/testpypi.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 plugins/testpypi.py diff --git a/plugins/testpypi.py b/plugins/testpypi.py new file mode 100644 index 0000000..a969788 --- /dev/null +++ b/plugins/testpypi.py @@ -0,0 +1,11 @@ +import requests +from bs4 import BeautifulSoup +from lib.colors import red,white,reset + +def testpypi(self,args): + response = requests.get(self.url) + if response.status_code != 200: + exit(f"{white}[{red}-{white}] testpypi: user not found{reset} ") + soup = BeautifulSoup(response.text, 'html.parser') + print('\n\t'+soup.title.string) + print(soup.main.get_text())