dustinbutterworth / dockerhub-image-scraper

For a given user profile, use the dockerhub api to list all their repositories then list the 5 most recent images of each tag of those images, then scrap the image data from https://hub.docker.com/v2/repositories/{user}/{repository}/tags/{tag}/images

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dockerhub Image Scraper

For a given user profile, use the dockerhub api to list all their repositories then list the 5 most recent images of each tag of those images, then scrap the image data from https://hub.docker.com/v2/repositories/{user}/{repository}/tags/{tag}/images

You can find secrets and sensitive information in there, and no docker pulls necessary.

prerequisites

python -m venv venv
pip install -r requirements.txt

Usage

Run main.py with the username as an argument:

python main.py nginx

Output

Outout goes into {user}_dumps directory in json format for you to search through.

TODO

Add proper rate limiting

About

For a given user profile, use the dockerhub api to list all their repositories then list the 5 most recent images of each tag of those images, then scrap the image data from https://hub.docker.com/v2/repositories/{user}/{repository}/tags/{tag}/images


Languages

Language:Python 100.0%