Add immoscout mobile API provider to avoid failing bot checks (#125)

* Add provider that uses the immoscout mobile API to avoid failing bot checks.
This commit is contained in:
Patrick Klein
2025-05-09 08:13:52 +01:00
committed by GitHub
parent a138dafc31
commit b9e4bca244
3 changed files with 276 additions and 1 deletions

View File

@@ -26,7 +26,7 @@ class FredyRuntime {
//modify the url to make sure search order is correctly set
Promise.resolve(urlModifier(this._providerConfig.url, this._providerConfig.sortByDateParam))
//scraping the site and try finding new listings
.then(this._getListings.bind(this))
.then(this._providerConfig.getListings?.bind(this) ?? this._getListings.bind(this))
//bring them in a proper form (dictated by the provider)
.then(this._normalize.bind(this))
//filter listings with stuff tagged by the blacklist of the provider