feat(webscrape-bank): webscrapes the bank file on a hour loop, init. api
This commit is contained in:
commit
2ec98dc81d
8 changed files with 4252 additions and 0 deletions
31
actual-api/src/index.js
Normal file
31
actual-api/src/index.js
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
require("dotenv").config();
|
||||
let api = require("@actual-app/api");
|
||||
|
||||
// Constants
|
||||
const ACTUAL_URL = process.env.ACTUAL_URL
|
||||
const ACTUAL_PASSWORD = process.env.ACTUAL_PASSWORD
|
||||
const ACTUAL_CHECKING_ID = process.env.ACTUAL_CHECKING_ID
|
||||
|
||||
(async () => {
|
||||
await api.init({
|
||||
dataDir: "./",
|
||||
serverURL: ACTUAL_URL,
|
||||
password: ACTUAL_PASSWORD,
|
||||
});
|
||||
|
||||
console.log("Downloading the Budget Data")
|
||||
await api.downloadBudget("1d6b0769-5ed4-4601-b6f2-b63df21f1f46");
|
||||
|
||||
console.log("Getting Account Info")
|
||||
let accountInfo = await api.getAccounts()
|
||||
console.log(accountInfo)
|
||||
|
||||
function inspectBankFile() {
|
||||
|
||||
}
|
||||
|
||||
|
||||
//await api.shutdown();
|
||||
|
||||
|
||||
})();
|
||||
Loading…
Add table
Add a link
Reference in a new issue