eshaham / israeli-ynab-updater

A tool for updating YNAB using israeli-bank-scrapers
MIT License
53 stars 15 forks source link

Multiple scrapers/accounts from same site #36

Open edanm opened 5 years ago

edanm commented 5 years ago

Hey,

Awesome project! I might be missing something obvious, but - is there a way to define a few different user accounts for the same scraper? E.g., if I want to scrape Leumi Card's site using two different user accounts?

Thanks, Edan

eshaham commented 5 years ago

@edanm, unfortunately, it is not possible to define 2 different accounts. Personally, I got both my card and my wife's card to be under the same Leumi card account, so this is working well enough for me. I guess that multiple accounts per bank/credit card provider would really complicate the implementation, so I don't think there's a good chance we will build it. @esakal think otherwise?

edanm commented 5 years ago

@eshaham

Ok. I ended up going into the Israeli-Bank-Scrapers code and just kind of blindly duplicating the Isracard entry to create another one, so that I could set up two different accounts. It seems to work fine. I didn't really look at the code too deeply, I just copy-pasted whatever looked like I needed to :)

ptc-bsorek commented 5 years ago

I did this by creating a task and then adding the additional scraper to the task's config file.