A bash script for scraping pornhub in json.
install -m 755 pornhub-scraper /usr/bin
Here's example of pornstar, video, model, playlist and user.
pornhub-scraper [OPTION] [DIR]
The script gets links from sitemap and downloads specified pages (4 in parallel). Files are named by sha256sum of their urls.
It's recommended that you use -S option to save time.
Download pornstars into DIR
pornhub-scraper -p DIR
Download videos into current directory using 8 threads
pornhub-scraper -t 8 -v
Download models into current directory
pornhub-scraper -m
Download playlists into DIR
pornhub-scraper -P DIR
Download users from urls in FILE
pornhub-scraper -u FILE
Get some help
pornhub-scraper -h
2022-09-15
3
lzip -dc pornhub-pornstars.json | jq 'if (.info_pieces[] | .key=="Gender" and .value=="Trans Woman") then .name else null end | select(. != null)' -r | wc -l
131
lzip -dc pornhub-pornstars.json | jq 'if (.info_pieces[] | .key=="Gender" and .value=="Trans Man") then .name else null end | select(. != null)' -r | wc -l