Download Webpage Source

Call & Example Call

affx.dl("page", domain="", path="", dir="") affx.dl("page", domain="affx.ai", path="/us", dir="F:/Desktop")

Parameter Description

domain: Website domain, such as example.com. MUST be a website that has already been generated.

path: Specify the URL of the web page whose source code you want to download. It can start with / or without /, supporting second-level URLs, such as blog/us or /blog/us. MUST be a web page that has already been generated.

dir: Optional; default = current folder. Define the save path for the downloaded file.

Core Function

Download the source code of a specified generated web page.

Features

Output an .html file named after the web page URL.

Example Output

Output
Downloaded successfully: F:\Desktop\us.html