Skip to content

Instantly share code, notes, and snippets.

@ChristianKniep
Created September 15, 2014 20:00
Show Gist options
  • Save ChristianKniep/7a7a45e68ccdbf4ee470 to your computer and use it in GitHub Desktop.
Save ChristianKniep/7a7a45e68ccdbf4ee470 to your computer and use it in GitHub Desktop.
Fetch downloads from registry.hub.docker.io
from bs4 import BeautifulSoup
import requests
req = requests.get("https://registry.hub.docker.com/u/qnib/monster/")
data = r.text
soup = BeautifulSoup(data)
for div in soup.findAll("span", class_="downloads"):
print div.text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment