Main entry point for the automation server. Loads configuration and launches the server with the specified settings.
()
| 44 | |
| 45 | |
| 46 | def main(): |
| 47 | """ |
| 48 | Main entry point for the automation server. |
| 49 | |
| 50 | Loads configuration and launches the server with the specified settings. |
| 51 | """ |
| 52 | config = load_config() |
| 53 | |
| 54 | launch_server( |
| 55 | # Browser configuration |
| 56 | headless=config.get('headless', True), |
| 57 | geoip=config.get('geoip', True), |
| 58 | proxy=config.get('proxy'), |
| 59 | |
| 60 | # Behavior configuration |
| 61 | humanize=config.get('humanize', True), |
| 62 | showcursor=config.get('showcursor', True), |
| 63 | |
| 64 | # Performance settings |
| 65 | block_images=config.get('blockImages', False), |
| 66 | |
| 67 | # Feature settings |
| 68 | main_world_eval=config.get('mainWorldEval', True), |
| 69 | debug=config.get('debug', False) |
| 70 | ) |
| 71 | |
| 72 | |
| 73 | if __name__ == "__main__": |