Created
July 5, 2016 13:59
-
-
Save TakesxiSximada/0eaf1b4f54e46a680c4adca36ade99a6 to your computer and use it in GitHub Desktop.
pypi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bs4 | |
import requests | |
res = requests.get('PyPIのURL') | |
soup = bs4.BeautifulSoup(res.content, 'html.parser') | |
package_names = [elm.getText() for elm in soup.select('#content table.list tr td a')] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment