import caniusepython3 as ciu


def main():
    import sys
    project = sys.argv[1]
    result = ciu.check(projects=[project])
    print(result)

if __name__ == '__main__':
    main()

@@ -1,12 +1,47 @@
+from urllib.parse import urlparse%0A%0A
 import caniu
@@ -116,67 +116,802 @@
 %5B1%5D%0A
+%0A
     
-result = ciu.check(projects=%5Bproject%5D)%0A    print(result
+# check if there is github page%0A    with ciu.pypi.pypi_client() as client:%0A        releases = client.package_releases(project)%0A        if not releases:%0A            print('NO releases found for %7B%7D'.format(project))%0A            sys.exit(1)%0A%0A        got_github = False%0A        version = releases%5B0%5D%0A        package_data = client.package_data(project, version)%0A%0A        classifiers = package_data%5B'classifiers'%5D%0A        if 'Programming Language :: Python :: 3' in classifiers:%0A            print('py3 OK')%0A            sys.exit(0)%0A%0A        r = urlparse(package_data%5B'home_page'%5D)%0A        if r.netloc == 'github.com':%0A            got_github = True%0A        if got_github:%0A            print('github FOUND')%0A        else:%0A            print('github NOT FOUND')%0A%0A    print('py3 NOT OK')%0A    sys.exit(1
 )%0A%0Ai

Update the script to directly use pypi client