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:
dir:
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
- Automatically generate a URL that matches the page content.
- Automatically search for relevant keywords based on the provided webpage description and plan the page structure accordingly.
- Automatically assign images.
- The downloaded webpage source code is named as "the page's URL.html".
Example Output
In progress. Please DO NOT close...
Progress: 100%
Success!
Downloaded HTML to: F:\Desktop\api.html
