Scrape distrowatch.com
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md
pulldistros.py
setup.cfg
setup.py

README.md

Scrape Distrowatch

Scrape metadata from distrowatch.com

Example

import json
from pulldistros import distinfo, distros

print(json.dumps(distinfo('arch')))

i = 0
for dist in distros():
    i = i + 1
    d = distinfo(dist)['releases']

    print(i)
    for rel, vals in d.items():
        print("{0}:{1}:{2}".format(dist.encode('utf-8'), rel.encode('utf-8'),
                                   vals['Release Date'].encode('utf-8')
                                   if 'Release Date' in vals else 'unknown'))

Author

Thanks

  • Tobias Mueller instigated this