#!/usr/bin/env python3 """reddit-scraper.py - Launch the Reddit Super Duper Scraper API server.""" import argparse from config import Config def main(): """Parse arguments and start the server.""" parser = argparse.ArgumentParser( description="Reddit Super Duper Scraper - Scrape public Reddit data via local API" ) parser.add_argument( "--port", type=int, default=Config.DEFAULT_PORT, help=f"Port to run the server on (default: {Config.DEFAULT_PORT})" ) args = parser.parse_args() import uvicorn print(f"🚀 Starting Reddit Super Duper Scraper on http://0.0.0.0:{args.port}") print("📖 API documentation available at http://localhost:{}/docs".format(args.port)) print("💡 Accessible via local network only - no authentication required") uvicorn.run( "main:app", host=Config.DEFAULT_HOST, port=args.port, reload=False ) if __name__ == "__main__": main()