Created
May 24, 2020 11:19
-
-
Save beckermr/e9bff83992518fd0d149ebb8ec3ba850 to your computer and use it in GitHub Desktop.
get conda package history for cf-staging
This file contains hidden or 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
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