Skip to content
This repository has been archived by the owner on Jun 14, 2022. It is now read-only.

Commit

Permalink
added testpypi for v1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rly0nheart authored Feb 22, 2022
1 parent 98c4c5e commit 59505f0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions plugins/testpypi.py
Original file line number Diff line number Diff line change
@@ -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())

0 comments on commit 59505f0

Please # to comment.