Skip to content

Instantly share code, notes, and snippets.

@beckermr
Created May 24, 2020 11:19
Show Gist options
  • Save beckermr/e9bff83992518fd0d149ebb8ec3ba850 to your computer and use it in GitHub Desktop.
Save beckermr/e9bff83992518fd0d149ebb8ec3ba850 to your computer and use it in GitHub Desktop.
get conda package history for cf-staging
r = requests.get("https://anaconda.org/cf-staging/repo/history?label=all", headers={'Authorization': 'token %s' % token})
from bs4 import BeautifulSoup
soup = BeautifulSoup(r.text, 'html.parser')
# this is the table
tb = soup.find("table", class_="full-width")
# this iterates over all of the rows
for r in soup.find_all("tr"):
print(r)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment