An AI-based tool for monitoring facebook marketplace
Project description
An intelligent tool that monitors Facebook Marketplace listings using AI to help you find the best deals. Get instant notifications when items matching your criteria are posted, with AI-powered analysis of each listing.
๐ Read the Full Documentation
Example notification from PushBullet:
Found 1 new gopro from facebook
[Great deal (5)] Go Pro hero 12
$180, Houston, TX
https://facebook.com/marketplace/item/1234567890
AI: Great deal; A well-priced, well-maintained camera meets all search criteria, with extra battery and charger.
What's New
- Built-in Web UI: Edit config, add AI backends, and monitor live logs from your browser โ starts automatically with the monitor. See Web UI documentation.
- Anthropic/Claude AI Backend: Use Claude models (e.g.
claude-sonnet-4-20250514) to evaluate listings alongside OpenAI, DeepSeek, and Ollama. See AI Services for configuration. - Configurable Rate Limiting: Rate limiting framework for all notification types with per-instance and global limits. Telegram notifications use optimized defaults automatically.
Table of Contents:
- What's New
- โจ Key Features
- ๐ Quick Start
- ๐ก Example Usage
- ๐ Documentation
- ๐ค Contributing
- ๐ License
- ๐ฌ Support
- ๐ Credits
โจ Key Features
๐ Smart Search
- Search multiple products using keywords
- Filter by price and location
- Exclude irrelevant results and spammers
- Support for different Facebook Marketplace layouts
๐ค AI-Powered
- Intelligent listing evaluation
- Smart recommendations
- Multiple AI service providers supported
- Self-hosted model option (Ollama)
๐ฑ Notifications
- PushBullet, PushOver, Telegram, or Ntfy notifications
- HTML email notifications with images
- Customizable notification levels
- Repeated notification options
๐ฅ๏ธ Web UI
- Built-in config editor with TOML syntax highlighting
- Live log streaming and filtering
- Add, edit, and delete config sections from your browser
- No password required on localhost
๐ Location Support
- Multi-city search
- Pre-defined regions (USA, Canada, etc.)
- Customizable search radius
- Flexible seller location filtering
๐ Quick Start
โ ๏ธ Legal Notice: Facebook's EULA prohibits automated data collection without authorization. This tool was developed for personal, hobbyist use only. You are solely responsible for ensuring compliance with platform terms and applicable laws.
Installation
pip install ai-marketplace-monitor
playwright install
Basic Configuration
Create ~/.ai-marketplace-monitor/config.toml:
[marketplace.facebook]
search_city = 'houston' # Replace with your city
[item.gopro]
search_phrases = 'Go Pro Hero 11'
min_price = 100
max_price = 300
[user.me]
pushbullet_token = 'your_token_here' # Get from pushbullet.com
Run the Monitor
ai-marketplace-monitor
The program will open a browser, search Facebook Marketplace, and notify you of matching items. A web UI also starts automatically at http://127.0.0.1:8467 for editing config and monitoring logs โ see Web UI Guide.
๐ก Example Usage
Find GoPro cameras under $300:
[item.gopro]
search_phrases = 'Go Pro Hero'
keywords = "('Go Pro' OR gopro) AND (11 OR 12 OR 13)"
min_price = 100
max_price = 300
Search nationwide with shipping:
[item.rare_item]
search_phrases = 'vintage collectible'
search_region = 'usa'
delivery_method = 'shipping'
seller_locations = []
AI-powered filtering:
[ai.openai]
api_key = 'your_openai_key'
[item.camera]
description = '''High-quality DSLR camera in good condition.
Exclude listings with water damage or missing parts.'''
rating = 4 # Only notify for 4+ star AI ratings
๐ Documentation
For detailed information on setup and advanced features, see the comprehensive documentation:
- ๐ Full Documentation - Complete guide and reference
- ๐ Quick Start Guide - Get up and running in 10 minutes
- ๐ Features Overview - Complete feature list
- ๐ฑ Usage Guide - Command-line options and tips
- ๐ง Configuration Guide - Notifications, AI prompts, multi-location search
- โ๏ธ Configuration Reference - Complete configuration reference
- ๐ฅ๏ธ Web UI Guide - Built-in web interface for config editing and monitoring
Key Topics Covered in Documentation
Notification Setup:
- Email (SMTP), PushBullet, PushOver, Telegram, Ntfy
- Multi-user configurations
- HTML email templates
AI Integration:
- OpenAI, DeepSeek, Anthropic, Ollama setup
- Custom prompt configuration
- Rating thresholds and filtering
Advanced Search:
- Multi-city and region search
- Currency conversion
- Keyword filtering with Boolean logic
- Proxy/anonymous searching
Configuration:
- TOML file structure
- Environment variables
- Multiple marketplace support
- Language/translation support
๐ค Contributing
Contributions are welcome! Here are some ways you can contribute:
- ๐ Report bugs and issues
- ๐ก Suggest new features
- ๐ง Submit pull requests
- ๐ Improve documentation
- ๐ช Add support for new marketplaces
- ๐ Add support for new regions and languages
- ๐ค Add support for new AI providers
- ๐ฑ Add new notification methods
Please read our Contributing Guidelines before submitting a Pull Request.
๐ License
This project is licensed under the Affero General Public License (AGPL). For the full terms and conditions, please refer to the official GNU AGPL v3.
๐ฌ Support
We provide multiple ways to access support and contribute to AI Marketplace Monitor:
- ๐ Documentation - Comprehensive guides and instructions
- ๐ค Discussions - Community support and ideas
- ๐ Issues - Bug reports and feature requests
- ๐ Become a sponsor - Support development
- ๐ฐ Donate via PayPal - Alternative donation method
Important Note: Due to time constraints, priority support is provided to sponsors and donors. For general questions, please use the GitHub Discussions or Issues.
๐ Credits
- Some of the code was copied from facebook-marketplace-scraper.
- Region definitions were copied from facebook-marketplace-nationwide, which is released under an MIT license as of Jan 2025.
- This package was created with Cookiecutter and the cookiecutter-modern-pypackage project template.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ai_marketplace_monitor-0.10.1.tar.gz.
File metadata
- Download URL: ai_marketplace_monitor-0.10.1.tar.gz
- Upload date:
- Size: 7.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ba553afd47e07f3b8b0c0af3c39f1ea3473395936549079a4be97cea209ef7c
|
|
| MD5 |
26004e37051bc3330a33b0bcb3aef5e7
|
|
| BLAKE2b-256 |
607556cccdbe6953172df37a20ef70f03c2597724309703c8fba9c98c02a7d00
|
Provenance
The following attestation bundles were made for ai_marketplace_monitor-0.10.1.tar.gz:
Publisher:
release.yml on BoPeng/ai-marketplace-monitor
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ai_marketplace_monitor-0.10.1.tar.gz -
Subject digest:
2ba553afd47e07f3b8b0c0af3c39f1ea3473395936549079a4be97cea209ef7c - Sigstore transparency entry: 1280969002
- Sigstore integration time:
-
Permalink:
BoPeng/ai-marketplace-monitor@4c593ff4d530b4439a4e538c01f7d7c491944e6a -
Branch / Tag:
refs/tags/v0.10.1 - Owner: https://github.com/BoPeng
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@4c593ff4d530b4439a4e538c01f7d7c491944e6a -
Trigger Event:
release
-
Statement type:
File details
Details for the file ai_marketplace_monitor-0.10.1-py3-none-any.whl.
File metadata
- Download URL: ai_marketplace_monitor-0.10.1-py3-none-any.whl
- Upload date:
- Size: 323.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a77d1b6d86e2c94e2877fcdedc25764b4613c1c9b860ba2b08fc887599712934
|
|
| MD5 |
e3b211759efca1650b372c687c82b8a5
|
|
| BLAKE2b-256 |
ed3ea279b2202018853d64b99be4c80c2b9174d13de45f99b4e2fb07de0dddab
|
Provenance
The following attestation bundles were made for ai_marketplace_monitor-0.10.1-py3-none-any.whl:
Publisher:
release.yml on BoPeng/ai-marketplace-monitor
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ai_marketplace_monitor-0.10.1-py3-none-any.whl -
Subject digest:
a77d1b6d86e2c94e2877fcdedc25764b4613c1c9b860ba2b08fc887599712934 - Sigstore transparency entry: 1280969003
- Sigstore integration time:
-
Permalink:
BoPeng/ai-marketplace-monitor@4c593ff4d530b4439a4e538c01f7d7c491944e6a -
Branch / Tag:
refs/tags/v0.10.1 - Owner: https://github.com/BoPeng
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@4c593ff4d530b4439a4e538c01f7d7c491944e6a -
Trigger Event:
release
-
Statement type: