Can you download images from a specific domain for each page ending in a string?

时间秒杀一切 提交于 2020-01-25 07:25:48

问题


I recently found an old website that I used to use (we'll call it example.com) which stores images on a page with the URL of your ID and a 5-character randomly-generated code. For example if my ID is HG5K, one of these images will be located at example.com/[random code here]_HG5K.png.

The code generator uses a random combination of capital letters and numbers.

Some examples of codes: 83JME_HG5K HD2U3_HG5K 33GIZ_HG5K

What I'm asking is: if there is a way to search example.com for any pages that end in _HG5K.png, how do I do it?

Once we've found all of the pages containing the _HG5K.png suffix, how can I make it download the image from each of these pages onto my desktop?

Expected usage and procedure:

  1. Search for any pages on example.com that end in _HG5K.png
  2. For every page that ends in _HG5K.png, download the image to desktop.

来源:https://stackoverflow.com/questions/59222643/can-you-download-images-from-a-specific-domain-for-each-page-ending-in-a-string

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!