orangecoding / fredy

:heart: Fredy - [F]ind [R]eal [E]states [D]amn Eas[y] - Fredy will constantly search for new listings on sites like Immoscout or Immowelt and send new results to you, so that you can focus on more important things in life ;)
http://www.orange-coding.net
MIT License
231 stars 58 forks source link

Setup custom listing processors #86

Closed ahmedwalid05 closed 7 months ago

ahmedwalid05 commented 8 months ago

Hello there, I am sending a draft of this PR to get early feedback. Happy to iterate as needed.

My end goal is to be able to configure Fredy to calculate the distance and travel time between a predefined address(es) and the listing address, and add this information to the notifications. The user should be able to configure all the required information for the Google Maps API (Or another API provider if implemented), the destination information and mode of transport through the UI.

This PR only includes setting up a "processor" construct. Processors are files that add info or transform the listings. I have only added a static processor for now, as a proof of concept. Will continue once/if the approach is accepted.

Remaining work before PR can be merged:

Please let me know if I missed anything.

Not part of this PR:

Future improvements to this design could add a similarity check as a "filter" processor. i.e.: image

orangecoding commented 8 months ago

Hey.

Sorry it took so long, I was on a business trip. In general, I like the idea :) What is your plan about processors in general, would you:

ahmedwalid05 commented 7 months ago

Hi there,

To answer your questions, my plan was to let users configure it using the UI just like notifications. Sadly, since this PR was started, I have gotten busy and just don't have time to continue working on this. Please feel free to use any of my ideas/code.

Apologies!