Download images from website

后端 未结 1 1298
隐瞒了意图╮
隐瞒了意图╮ 2020-12-09 00:09

I want to have a local copy of a gallery on a website. The gallery shows the pictures at domain.com/id/1 (id increases in increments of 1) and then the image is stored at pi

相关标签:
1条回答
  • 2020-12-09 01:14
    # get all pages
    curl 'http://domain.com/id/[1-151468]' -o '#1.html'
    
    # get all images
    grep -oh 'http://pics.domain.com/pics/original/.*jpg' *.html >urls.txt
    
    # download all images
    sort -u urls.txt | wget -i-
    
    0 讨论(0)
提交回复
热议问题