summaryrefslogtreecommitdiffstats
path: root/src/indeedwatcher.nim
diff options
context:
space:
mode:
authormsglm <msglm@techchud.xyz>2023-01-24 22:37:14 -0600
committermsglm <msglm@techchud.xyz>2023-01-24 22:37:14 -0600
commitb64ddc624eace86f17e5c3db54e8d87c7bd6ffa0 (patch)
treed8905a9748ad214e562e9025ffc0d1eaa9748e87 /src/indeedwatcher.nim
parent6a18d90a4c34ac96811e960a080fd3088d86b975 (diff)
downloadindeedwatcher-b64ddc624eace86f17e5c3db54e8d87c7bd6ffa0.tar.gz
indeedwatcher-b64ddc624eace86f17e5c3db54e8d87c7bd6ffa0.tar.bz2
indeedwatcher-b64ddc624eace86f17e5c3db54e8d87c7bd6ffa0.zip
some small debugging stuff
Diffstat (limited to 'src/indeedwatcher.nim')
-rw-r--r--src/indeedwatcher.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/indeedwatcher.nim b/src/indeedwatcher.nim
index 645d59e..083d0ae 100644
--- a/src/indeedwatcher.nim
+++ b/src/indeedwatcher.nim
@@ -138,10 +138,12 @@ for feed in feeds:
""" % [jobTitle, employer, salaryInfoAndJobType, URL, fullDesc]
writeFile(outdir & jobTitle.replace("/") & ".txt", output)
cache.add(URL)
+ echo "Wrote job to file!"
else:
echo "Trigger was hit, discarding " & URL
else:
echo URL & " was in cache, discarding"
+ echo "wrote cache to cache..."
writeFile(cachefileloc, cache.join("\n"))
session.close()