summaryrefslogtreecommitdiffstats
path: root/src/indeedwatcher.nim
diff options
context:
space:
mode:
authormsglm <msglm@techchud.xyz>2025-08-17 19:54:24 -0500
committermsglm <msglm@techchud.xyz>2025-08-17 19:54:24 -0500
commit229ba03c572632a7271edfb3b97310673bc1fdc1 (patch)
treed8905a9748ad214e562e9025ffc0d1eaa9748e87 /src/indeedwatcher.nim
parentbf4df19bc98b9aed91e7cda44dfb6a04da2ed6fc (diff)
downloadindeed-watcher-229ba03c572632a7271edfb3b97310673bc1fdc1.tar.gz
indeed-watcher-229ba03c572632a7271edfb3b97310673bc1fdc1.tar.bz2
indeed-watcher-229ba03c572632a7271edfb3b97310673bc1fdc1.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()