HomeSoftware TutorialHow does Xiaofeitu set up and download dynamic link addresses?
How does Xiaofeitu set up and download dynamic link addresses?

For links that do not have a URL in the HTML code, their URLs are generated by the front-end JavaScript execution. This is commonly seen in file downloads and multi-resolution images.

What types of dynamic links are supported?

  • Link address composed of tag attribute values

HTML code

Click to download
  • When click Click to download When the button is pressed, the download address is provided bydata-fileid="filename.zip"of filename.zip It is concatenated, for example, the concatenated address is:http://www.demo.com/files/文件名.zip

How to configure

Using the code above as an example

  • Search tags:.downloadFile
  • Replacement process: No need to fill in.
  • Tag attributes:data-fileid
  • Prefix for splicing:htp://www.demo.com/files/
  • Suffix: No need to fill in.

Replacement processing

This type of dynamically generated image sizes using `img:srcset`

Based on different resolutions, JavaScript dynamically loads images of different sizes. The srcset is an array containing the supported image sizes.

The rendered image addresses might be:

Settings like this: Before replacement:/image- After replacement:/image-180.jpg|/image-320.jpg|/image-640.jpg|/image-800.jpg

After replacement, multiple addresses of the parameter are separated by '|'.

  • Through the above processing, four sets of image addresses were obtained, namely:
http://www.demo.com/files/20220603/image-180.jpg http://www.demo.com/files/20220603/image-320.jpg http://www.demo.com/files/20220603/image-640.jpg http://www.demo.com/files/20220603/image-800.jpg

limitation

  • Currently, multi-parameter concatenation is not supported; only single-parameter concatenation is currently supported.
  • More complex parameter processing issues.
Software Applications: Front-end template download; development and design; SEO optimization; offline web browsing. Note: This software is not a hacking program and cannot download backend data!
Disclaimer: This service is for personal study, research, or enjoyment purposes only, and is for non-commercial, non-profit use. Users must comply with copyright laws and related regulations and must not infringe upon the legitimate rights and interests of this website and related rights holders. Any risks arising from the use of this tool are the sole responsibility of the user and are not the responsibility of the software itself.
Copyright © 2019-2026 Xiaofeitu Software. All Rights Reserved. Guangdong ICP Registration No. 19111427-2
Tutorial User Manual Website Special