Der Wohnungsbot — die Anwendung zum 2. Akt ("Das Versprechen des Bots") des Automatisierungsdramas in drei Akten "Von einem der auszog eine Wohnung in Berlin zu finden" von Clemens Schöll
I'm not 100% sure but from a one-time-experience I had the feeling that the bot would not recover, once it had an no-internet-error. Could be a good improvement, to make it error resistant.
console log:
```
(node:56782) electron: Failed to load URL: https://www.immobilienscout24.de/Suche/de/berlin/berlin/wohnung-mieten?numberofrooms=-&livingspace=70.0-&pricetype=rentpermonth&price=-3000.0&geocodes=1276003001034,1276003001046,1276003001061,1276003001068&exclusioncriteria=swapflat&haspromotion=false with error: ERR_NAME_NOT_RESOLVED
(Use `electron --trace-warnings ...` to show where the warning was created)
{
type: 'SET_BROWSER_VIEW_READY',
payload: { name: 'puppet', ready: true }
}
[Async Function]
{
type: 'SET_BOUNDING_BOX_GROUP',
payload: { boundingBoxes: [], group: 'OVERVIEW' }
}
Error executing JavaScript-snippet within webContents:
[ReferenceError] IS24 is not defined
ReferenceError: IS24 is not defined
at :3:19
at new Promise ()
at :1:1
This is the code that caused the error:
new Promise((resolve, reject) => {
try {
resolve(IS24['resultList']['resultListModel']['searchResponseModel']['resultlist.resultlist']['resultlistEntries'][0]['resultlistEntry'])
} catch(err) {
throw { name: err.name, message: err.message, stack: err.stack }
}
})
// END OF CODE
Stack that led to the execution of this snippet (Electron):
at /home/georg/Mega/Projekte/wohnungsbot/wohnungsbot/app/webpack:/wohnungsbot/app/actions/data.js:67:69
at next (/home/georg/Mega/Projekte/wohnungsbot/wohnungsbot/node_modules/redux-thunk/lib/index.js:23:18)
at next (/home/georg/Mega/Projekte/wohnungsbot/wohnungsbot/app/webpack:/wohnungsbot/app/middleware/scheduler.js:45:10)
at /home/georg/Mega/Projekte/wohnungsbot/wohnungsbot/app/webpack:/wohnungsbot/app/middleware/logging.js:47:10
at Object.dispatch (/home/georg/Mega/Projekte/wohnungsbot/wohnungsbot/node_modules/redux/lib/redux.js:699:28)
at Immediate.n (/home/georg/Mega/Projekte/wohnungsbot/wohnungsbot/app/webpack:/wohnungsbot/app/middleware/bot.js:113:21)
Current URL:
https://www.immobilienscout24.de/Suche/de/berlin/berlin/wohnung-mieten?numberofrooms=-&livingspace=70.0-&pricetype=rentpermonth&price=-3000.0&geocodes=1276003001034,1276003001046,1276003001061,1276003001068&exclusioncriteria=swapflat&haspromotion=false
```
I'm not 100% sure but from a one-time-experience I had the feeling that the bot would not recover, once it had an no-internet-error. Could be a good improvement, to make it error resistant.
console log: