refactoring
This commit is contained in:
34
backend/config.json
Normal file
34
backend/config.json
Normal file
@ -0,0 +1,34 @@
|
||||
{
|
||||
"server": {
|
||||
"host": "0.0.0.0",
|
||||
"port": 5000,
|
||||
"debug": false
|
||||
},
|
||||
"scraping": {
|
||||
"session_timeout": 300,
|
||||
"listings_per_page": 25,
|
||||
"max_workers": 4,
|
||||
"min_workers": 2,
|
||||
"rate_limit_delay": 0.5,
|
||||
"geocoding_delay": 1.0
|
||||
},
|
||||
"cache": {
|
||||
"zip_cache_file": "zip_cache.json"
|
||||
},
|
||||
"apis": {
|
||||
"nominatim": {
|
||||
"url": "https://nominatim.openstreetmap.org/search",
|
||||
"user_agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36"
|
||||
},
|
||||
"kleinanzeigen": {
|
||||
"base_url": "https://www.kleinanzeigen.de"
|
||||
}
|
||||
},
|
||||
"user_agents": [
|
||||
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
|
||||
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
|
||||
"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0",
|
||||
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2 Safari/605.1.15",
|
||||
"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user