BOOKSCOUT DAILY — Craigslist Search Alert Dashboard (Namecheap shared hosting)

WHAT IT DOES
- Tracks book-related Craigslist search alert emails; de-duplicates individual Craigslist posting URLs.
- Ranks by keywords like free, textbook, box, lot, estate sale, moving.
- Shows original links, editable status and notes, stored in a private SQLite database.
- Supports manual paste immediately; automatic imports when configured on your hosting account.
- DOES NOT scrape Craigslist; DOES NOT retrieve Amazon prices or guarantee profitability.

PREVIEW / TEST ON NAMECHEAP
1. Choose a new isolated folder on your site's document root, e.g. /bookscout-daily/.
2. Upload all files with the private subfolder. Rename config.example.php to config.php.
3. Edit config.php to set a STRONG unique dashboard password and, later, dedicated mailbox settings.
4. Make sure HTTPS is enabled; open https://yourdomain.com/bookscout-daily/ and sign in.
5. From BookScout open one Craigslist search. Log into Craigslist; save the search and enable email alerts.
   Official instructions: https://www.craigslist.org/about/help/account/features/alerts
6. Copy/paste a real Craigslist alert email into BookScout and import it. Confirm deals appear.

AUTOMATIC DAILY IMPORT — AFTER INITIAL TEST
7. In Namecheap cPanel, create a DEDICATED email account for Craigslist alerts (not your personal email).
   Configure Craigslist to deliver saved-search emails there.
8. In cPanel PHP Selector, enable IMAP and PDO SQLite modules as needed. Confirm the IMAP mailbox
   hostname and SSL port (typically 993) in cPanel Email Accounts > Connect Devices.
9. In config.php enter the dedicated mailbox credentials. NEVER share the credentials in chat.
10. In cPanel > Advanced > Cron Jobs, set a once-daily task, e.g. 0 8 * * *.
    Command example (EDIT username/path):
    /usr/local/bin/php /home/YOUR_CPANEL_USERNAME/public_html/bookscout-daily/cron.php
    If the chosen PHP executable doesn't have IMAP enabled, use your provider's correct CLI PHP path.
11. Confirm it works from cPanel logs/terminal or cron output. It checks recent Craigslist emails,
    extracts posting URLs, skips duplicates, and refreshes your dashboard automatically.

IMPORTANT SAFETY
- Keep HTTPS on and change the default config password BEFORE exposing this folder publicly.
- Consider cPanel Directory Privacy in addition to the app login.
- Restrict access to /private/ (included .htaccess) and never put config values in screenshots.
- Protect the email mailbox and use a dedicated account. The app does not need your Amazon or Namecheap password.
- URL extraction is best-effort: some Craigslist email layouts or tracking links may not parse.
- 'Possible email price' is rough: one alert can contain multiple listings, and the email can contain
  several prices; therefore the price may NOT correspond to an individual listing. Treat as unknown
  until checked on Craigslist. Ranking is heuristic, not a valuation or Amazon demand estimate.
- Daily automation won't run until configured on your server; simply opening index.php doesn't schedule it.
