Skip to content

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

Notifications You must be signed in to change notification settings

dustinbutterworth/dockerhub-image-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages