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)