Overview
MoneyPrinter V2 streamlines affiliate marketing workflows:Setup Requirements
Prerequisites
Twitter Account
A configured Twitter account in MoneyPrinter V2 (see Twitter Bot setup)
Affiliate Links
Valid Amazon affiliate links (or other platforms following similar HTML structure)
Firefox Profile
Same authenticated Firefox profile used for Twitter posting
Configuration
No additional configuration needed—uses existing Twitter and browser settings.Product Management
Adding a Product
From the main menu, select Affiliate Marketing:You’ll need the UUID of an existing Twitter account. View UUIDs from the Twitter Bot account selection menu.
Product Scraping Process
- Opens the affiliate link in a browser
- Locates product title using Amazon’s element IDs
- Extracts feature bullet points
- Stores information for pitch generation
Pitch Generation
AI creates promotional content based on scraped product data:Pitch Characteristics
Feature-Focused
AI emphasizes key product features from scraped data
Concise Format
Brief pitches suitable for social media (Twitter-length friendly)
Affiliate Link
Your affiliate link is automatically appended to the pitch
Natural Language
Generated in conversational style, not overly promotional
Example Generated Pitch
Social Media Sharing
After pitch generation, the system automatically posts to your Twitter account:Sharing Workflow
Currently only Twitter is supported as a sharing platform. The
where parameter is designed for future expansion to other platforms.Complete Workflow Example
Here’s a full affiliate marketing session:Managing Multiple Products
When you’ve added products, they appear in a selection table:- Scraping product information
- Generating a new pitch
- Posting to the associated Twitter account
Product Cache
Products are stored in.mp/cache/afm_cache.json:
Troubleshooting
Error: Affiliate link is invalid
Error: Affiliate link is invalid
Cause: Link doesn’t have
http:// or https:// scheme, or is malformed.Solution:Product title not found
Product title not found
Cause: Amazon changed their HTML structure, or the page is a non-product page.Solution:
- Verify the link opens a product detail page
- Check
constants.pyforAMAZON_PRODUCT_TITLE_IDdefinition - Inspect Amazon’s page HTML to update element IDs if changed
Features not scraped correctly
Features not scraped correctly
Cause: Feature bullet points use different element IDs than expected.Solution: Update
AMAZON_FEATURE_BULLETS_ID in constants.py to match current Amazon structure.Pitch is too generic
Pitch is too generic
Cause: Product features weren’t scraped properly, so AI has limited context.Solution:
- Verify features are being extracted (check verbose logs)
- Manually test scraping on the product page
- Consider adding more context in the pitch generation prompt
Tweet not posting
Tweet not posting
Cause: Twitter account authentication issues (see Twitter Bot troubleshooting).Solution: Verify the Firefox profile is still logged into Twitter.
Best Practices
Product Selection
Choose products relevant to your Twitter account’s topic for authentic promotion
Pitch Variety
Re-generate pitches for the same product periodically to avoid repetitive content
Compliance
Include #ad or #affiliate hashtags if required by FTC or local regulations
Genuine Promotion
Only promote products you’ve researched or believe in for audience trust
Link Tracking
Monitor your affiliate dashboard to track which products generate conversions
Spacing Posts
Don’t spam affiliate links—mix with regular content on your Twitter account
Extending to Other Platforms
While currently Amazon-focused, you can adapt the code for other affiliate networks:Required Changes
-
Update Scraping Logic (
AFM.py:91): -
Add Platform Detection:
-
Platform-Specific Scrapers:
Future Enhancements
Potential additions to the affiliate marketing feature:- Multi-platform sharing: Facebook, Instagram, LinkedIn
- Image extraction: Scrape and include product images in posts
- Scheduled campaigns: Promote products at optimal times
- A/B testing: Generate multiple pitch variations and track performance
- Conversion tracking: Integrate with affiliate network APIs
Source Code Reference
- Affiliate Marketing class:
src/classes/AFM.py - Menu interface:
src/main.py:353-412 - Cache management:
src/cache.py - Amazon element constants:
src/constants.py