Skip to main content

An AI-based tool for monitoring facebook marketplace

Project description

AI Marketplace Monitor

PyPI - Version PyPI - Python Version Tests Codecov Read the Docs PyPI - License

Black pre-commit Contributor Covenant

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

Search In Action

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

  • 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:

โœจ 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

๐ŸŒŽ 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.

๐Ÿ’ก 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:

Key Topics Covered in Documentation

Notification Setup:

  • Email (SMTP), PushBullet, PushOver, Telegram, Ntfy
  • Multi-user configurations
  • HTML email templates

AI Integration:

  • OpenAI, DeepSeek, 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:

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ai_marketplace_monitor-0.10.0.tar.gz (5.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ai_marketplace_monitor-0.10.0-py3-none-any.whl (80.2 kB view details)

Uploaded Python 3

File details

Details for the file ai_marketplace_monitor-0.10.0.tar.gz.

File metadata

  • Download URL: ai_marketplace_monitor-0.10.0.tar.gz
  • Upload date:
  • Size: 5.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for ai_marketplace_monitor-0.10.0.tar.gz
Algorithm Hash digest
SHA256 fadf4c06a844726a4d0f8bd32887002692ace1304d4b58e47ca4bf56df203cbc
MD5 bb48441dd525213d0d5ded88eaf4f7e4
BLAKE2b-256 9ef36183b39d026d7dde1ee186a06b9345c2597000cdbe112b2bf33c2f215baf

See more details on using hashes here.

Provenance

The following attestation bundles were made for ai_marketplace_monitor-0.10.0.tar.gz:

Publisher: release.yml on BoPeng/ai-marketplace-monitor

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ai_marketplace_monitor-0.10.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ai_marketplace_monitor-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7553dd5cb2dbd4b59882200f6bad4475c41b627f5491af5a6fa3a66f6ba788a4
MD5 eeb18afbaff82e5f7a4f067082d15e42
BLAKE2b-256 ef948cbbd65fc62e156fc26ee31b2e67ba65951a485b321953e3eb4ea7647daf

See more details on using hashes here.

Provenance

The following attestation bundles were made for ai_marketplace_monitor-0.10.0-py3-none-any.whl:

Publisher: release.yml on BoPeng/ai-marketplace-monitor

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page