Hi,

The pypi exposes its simple api at <https://pypi.org/simple/>, which can be 
used to extract the complete package name list. I want to do the job 
efficiently and write the following simple codes:


import requests
proxies = {
        'http': 'socks5h://127.0.0.1:18888',
        'https': 'socks5h://127.0.0.1:18888'
}


requests.packages.urllib3.disable_warnings()
r = requests.get('https://pypi.org/simple/', proxies=proxies, verify=False)


The package name info is included in the r.text string object, but I still 
can't figure out how to further extract them efficiently.


Any hints will be highly appreciated.

Regards,
HY
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to