From fd50dfec93079ea1764dc7a31da5a003bb7a92c8 Mon Sep 17 00:00:00 2001 From: Anish Lakhwara Date: Sat, 26 Nov 2022 00:16:13 +1000 Subject: [PATCH] small fixes --- src/muneem/etaoin.clj | 7 ++++--- src/muneem/main.clj | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/muneem/etaoin.clj b/src/muneem/etaoin.clj index dfb8ac4..7065dc8 100644 --- a/src/muneem/etaoin.clj +++ b/src/muneem/etaoin.clj @@ -3,7 +3,8 @@ [clojure.java.shell :refer [sh]] [etaoin.keys :as k])) -(def driver (e/chrome {:args ["--disable-blink-features=AutomationControlled" "--maximize"]})) +(def driver (e/chrome {:args ["--disable-blink-features=AutomationControlled" "--maximize"] + :prefs {:profile.default_content_setting_values.automatic_downloads 1}})) ;:download-dir "./documents/" (defn download-csv @@ -39,5 +40,5 @@ (defn move-download [] - (sh "mv" "~/Downloads/Transactions.csv" "./documents/checking.csv") - (sh "mv" "~/Downloads/Transactions\(1\).csv" "./documents/savings.csv")) + (sh "mv" "/home/anish/Downloads/Transactions.csv" "./documents/checking.csv") + (sh "mv" "/home/anish/Downloads/Transactions (1).csv" "./documents/savings.csv")) diff --git a/src/muneem/main.clj b/src/muneem/main.clj index 2dd581c..c412857 100644 --- a/src/muneem/main.clj +++ b/src/muneem/main.clj @@ -6,7 +6,7 @@ [& _args] (download/download-csv) (download/move-download) - (import/main "./documents/checking.csv" true) - (import/main "./documents/savings.csv" true)) + #_(import/main "./documents/checking.csv" true) + #_(import/main "./documents/savings.csv" true)) (-main)