mustafabayar / immo_trakt Goto Github PK
View Code? Open in Web Editor NEWTelegram Bot to find offers on immobilienscout24.de for given criterias.
License: MIT License
Telegram Bot to find offers on immobilienscout24.de for given criterias.
License: MIT License
Thank you for doing the working and sharing the script with us! It is very unfortunate that they have closed the API. Do you think there is any alternative?
Thank you for a great bot, works like a charm ๐ค
Unfortunately I'm not golang dev, so I can't contribute properly, but I have a feature request to support multiple chat ids.
It would be much convenient if my partner and I would receive the same messages together.
Thank you in advance ๐
2022/03/24 20:24:37 json: cannot unmarshal object into Go struct field .searchResponseModel.resultlist.resultlist.resultlistEntries.resultlistEntry of type []struct { ID string "json:\"@id\""; Publishdate string "json:\"@publishDate\""; ResultlistRealEstate struct { ID string "json:\"@id\""; Title string "json:\"title\""; Price struct { Value float32 "json:\"value\""; Currency string "json:\"currency\"" } "json:\"price\""; LivingSpace float32 "json:\"livingSpace\""; NumberOfRooms float32 "json:\"numberOfRooms\""; CalculatedTotalRent struct { Totalrent struct { Value float32 "json:\"value\""; Currency string "json:\"currency\"" } "json:\"totalRent\"" } "json:\"calculatedTotalRent\"" } "json:\"resultlist.realEstate\"" }
exit status 1
this stops the bot.
I will set up the boot to auto-restart for now.
but would be cool to get to the bottom of why the JSON can't be parsed
everything crashes after 1-2 hours and I have to make a subtle change for my search request (for instance, raise the rent 50โฌ) for it to run again for 1-2 hours. This is probably a protective mechanism from immoscout. Do you have an idea for a soultion?
โ immo_trakt git:(main) โ go run main.go
go: downloading gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b
go: downloading github.com/go-telegram-bot-api/telegram-bot-api v4.6.4+incompatible
go: downloading github.com/go-co-op/gocron v1.5.0
go: downloading github.com/kelseyhightower/envconfig v1.4.0
go: downloading golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
go: downloading github.com/robfig/cron/v3 v3.0.1
go: downloading github.com/technoweenie/multipartstreamer v1.0.1
2022/03/24 18:05:14 ImmoTrakt is going to run with following configuration:
Frequency: 1m
Include Existing Offers: false
Search: https://www.immobilienscout24.de/Suche/de/berlin/berlin/wohnung-mieten?price=-950.0&pricetype=calculatedtotalrent&enteredFrom=result_list
Exclude WBS: false
Exclude Tausch: false
2022/03/24 18:05:14 Unauthorized
panic: Unauthorized
goroutine 1 [running]:
log.Panic({0xc000177f10, 0x2f, 0xc00007d530})
/usr/lib/go/src/log/log.go:354 +0x65
main.main()
/home/a0n/immo_trakt/main.go:102 +0x219
exit status 2
For some search urls unmarshalling json body fails and system panics.
I will investigate this when I have time.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.