Sep 27, 2025 18:01 make it so the location for sniper page works the same as the dashboard page so has the dropdown etc 18:00 ok now make a new page in-between dashboard and settings that is like a snipeing bot page for my scraper that only gets the newest from a keyword have max and min price and location no need for listed within tho 17:56 make it so you cant do negative prices in max and min price and make it so if it 0 then it is none 17:54 doesn't need the scraper settings but keep everything else the same 17:49 make it so you can click on the settings and it brings up a settings page with all the stuff a settings page needs 17:03 dont bring all the locations up till you start typing in the box and only bring up 3 at a time closest to what they are trying to type 17:00 it needs to have austrail as well as all the others 16:59 the location is for the whole world not just Australia also make the dropdown with the locations look better 16:58 Promote version 930811d to main Promoted commit 930811d482577549c907d9c7b1d21ec9d9a30136 to main branch 16:57 the location is not just Australia and make the dropdown look cleaner 16:56 nah go back 16:55 its not just australia but can you make it like the Facebook one since it is for facebook 16:53 ok cool i like it so far maybe change the location because it can be anywhere in the world so make it so you can type in it and i gives you the closest answer and make sure it always has a QLD or NSW or anything like that behind wherever it is 16:50 this is a website for a facebook marketplace scraper need to make it look a lot better from flask import Flask, render_template_string, request, redirect import sqlite3, threading, os
import market_scraper
app = Flask(__name__)
DB_FILE = "marketwatch.db"
scraper_thread = None
LOG_FILE = "scraper.log"
# --- Ensure DB Schema ---
def ensure_schema():
conn = sqlite3.connect(DB_FILE)
c = conn.cursor()
try:
c.execute("ALTER TABLE keywords ADD COLUMN min_price INTEGER")
except sqlite3.OperationalError:
pass
try:
c.execute("ALTER TABLE keywords ADD COLUMN max_price INTEGER")
except sqlite3.OperationalError:
pass
try:
c.execute("ALTER TABLE keywords ADD COLUMN listed_filter TEXT DEFAULT 'all'")
except sqlite3.OperationalError:
pass
conn.commit()
conn.close()
ensure_schema()
def get_keywords():
conn = sqlite3.connect(DB_FILE)
c = conn.cursor()
c.execute("SELECT id, keyword, min_price, max_price, location, listed_filter FROM keywords")
rows = c.fetchall()
conn.close()
return rows
def get_listings():
conn = sqlite3.connect(DB_FIL… 16:50 initial commit