Skip to content

Instantly share code, notes, and snippets.

@TakesxiSximada
Created July 5, 2016 13:59
Show Gist options
  • Save TakesxiSximada/0eaf1b4f54e46a680c4adca36ade99a6 to your computer and use it in GitHub Desktop.
Save TakesxiSximada/0eaf1b4f54e46a680c4adca36ade99a6 to your computer and use it in GitHub Desktop.
pypi
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