-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
22 lines (19 loc) · 711 Bytes
/
main.py
File metadata and controls
22 lines (19 loc) · 711 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import json
from fastmail import Fastmail
from scraper import Scraper
from ynab import YNAB
if __name__ == '__main__':
fastmail = Fastmail()
ynab = YNAB()
scraper = Scraper()
# with open('fastmail.json', 'w') as f:
# f.write(json.dumps(fastmail.get_account(), indent=2))
# with open('ynab.json', 'w') as f:
# f.write(json.dumps(ynab.get_budgets(), indent=2))
# with open('mail.json', 'w') as f:
# f.write(json.dumps(fastmail.test_request(), indent=2))
# mail_ids = fastmail.get_mail_body_ids()
# fastmail.get_mail(mail_ids)
# with open(f'{mail_ids[0]}.html', 'r') as f:
# scraper.electric_payment_details(f)
print(ynab.get_budget_id())