python product_analyzer_tool.py <website_url># Analyze a simple API site
python product_analyzer_tool.py https://httpbin.org
# Analyze with custom depth and output directory
python product_analyzer_tool.py https://example.com --depth 5 --output ./my_analysis
# Run with visible browser (for debugging)
python product_analyzer_tool.py https://jsonplaceholder.typicode.com --no-headless
# Analyze without https:// prefix
python product_analyzer_tool.py example.com| Option | Short | Description | Default |
|---|---|---|---|
--depth |
-d |
Maximum analysis depth (pages to explore) | 5 |
--output |
-o |
Output directory for generated files | analysis_output |
--no-headless |
Run browser in visible mode | headless | |
--version |
Show version information | ||
--help |
-h |
Show help message |
For each analysis, the tool generates:
- Complete analysis results
- Page types discovered
- Features identified
- User interactions mapped
- Session logs
- User stories in Markdown format
- Acceptance criteria
- Priority levels
- Page type associations
diagram_user_flow_<domain>_<timestamp>.mmd- User flow diagramdiagram_page_types_<domain>_<timestamp>.mmd- Page type diagramdiagram_feature_map_<domain>_<timestamp>.mmd- Feature map diagramall_diagrams_<domain>_<timestamp>.mmd- All diagrams combined
- Analysis overview
- Generated files list
- Results summary
https://httpbin.org- API testing sitehttps://example.com- Basic example sitehttps://jsonplaceholder.typicode.com- API documentation
- E-commerce sites
- SaaS platforms
- Documentation sites
- Community forums
-
"No user stories generated"
- Website may be too simple
- Try a more complex website with forms and interactions
-
"Analysis failed"
- Check internet connection
- Verify website URL is correct
- Try with
--no-headlessto see browser behavior
-
"Browser crashed"
- Website may be too complex
- Try reducing
--depthparameter - Use
--no-headlessfor debugging
python product_analyzer_tool.py <url> --no-headless --depth 2Generated based on discovered forms and page types:
- Authentication - Login/signup forms
- E-commerce - Product pages, shopping carts
- User Management - Dashboards, profiles
- Content - Blog posts, articles
- Support - Contact forms, help pages
- User Flow - How users navigate through the site
- Page Types - Different types of pages discovered
- Feature Map - Features and functionality identified
# Analyze multiple websites
for url in "https://httpbin.org" "https://example.com" "https://jsonplaceholder.typicode.com"; do
python product_analyzer_tool.py "$url" --output "analysis_$(date +%Y%m%d)"
donepython product_analyzer_tool.py https://example.com --output ./my_product_analysis# Add to your build pipeline
python product_analyzer_tool.py $WEBSITE_URL --output ./docs/product_analysis- Use complex websites - Sites with forms, user accounts, and multiple pages work best
- Adjust depth - Start with depth 3-5 for most sites
- Check output files - Review generated Markdown and Mermaid files
- Use visible mode - Use
--no-headlessto see what the browser is doing - Analyze multiple pages - The tool works best when it can explore multiple pages
The tool successfully generates:
- ✅ User stories for product development
- ✅ Mermaid diagrams for process visualization
- ✅ Feature maps and user flows
- ✅ Comprehensive analysis data
- ✅ Professional documentation
Perfect for understanding any website's structure and generating product documentation!