Generate Webpage

Prefer not to use API calls? You can use this feature via the web interface.

Call

affx.gen("page", domain="", name="", desc="", lang="", href="", link="", dir="" ) affx.gen("page", domain="https://affx.ai", name="Affx", desc="Introducing the various functions of the AffX API and their respective calling methods.", lang="en", href="https://example.com/?ref=xxx", link="/about, /contact, /privacy, /terms", dir="F:/Desktop" )

Parameter Description

domain: Website domain, such as www.example.com or example.com, supporting subdomains like en.example.com.

name: Website name, such as AffX.

desc: A brief description of this webpage, intended to help the AI ​​better understand the page's content and structure.

lang: Language of the webpage, such as en, zh-CN, etc.

href: Affiliate referral links, such as https://example.com/?ref=xxx.

link: Optional; default = Empty. The internal links that you want this page to point to. Links may start with `/` or without `/`, and multiple links should be separated by `, `. For example: "/about, /contact, /privacy, /terms".

dir: Optional; default = current folder. Specify the save path for the generated webpage source code.

Core Function

Automated affiliate webpage generation. Automatically download the generated webpage source code to your local machine. You can directly place it on your own web server.

Features

Example Output

Output
In progress. Please DO NOT close... Progress: 100% Success! Downloaded HTML to: F:\Desktop\api.html