summaryrefslogtreecommitdiffstats
path: root/src
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
commit04e77128bb795b8fdf92dffa4152dbd94c351382 (patch)
tree7d319ae3ae0b529f121188dfcfd54d30e86db2db /src
downloadindeed-watcher-04e77128bb795b8fdf92dffa4152dbd94c351382.tar.gz
indeed-watcher-04e77128bb795b8fdf92dffa4152dbd94c351382.tar.bz2
indeed-watcher-04e77128bb795b8fdf92dffa4152dbd94c351382.zip
design and data retreieval done
Diffstat (limited to 'src')
-rwxr-xr-xsrc/indeedwatcherbin0 -> 797072 bytes
-rw-r--r--src/indeedwatcher.nim22
2 files changed, 22 insertions, 0 deletions
diff --git a/src/indeedwatcher b/src/indeedwatcher
new file mode 100755
index 0000000..6c19c76
--- /dev/null
+++ b/src/indeedwatcher
Binary files differ
diff --git a/src/indeedwatcher.nim b/src/indeedwatcher.nim
new file mode 100644
index 0000000..0c7e8a4
--- /dev/null
+++ b/src/indeedwatcher.nim
@@ -0,0 +1,22 @@
+import rss
+import webdriver
+import osproc
+import threadpool
+import options
+
+var test = getRSS("https://rss.indeed.com/rss?q=Linux&l=Arkansas&explvl=mid_level")
+echo test.items[0].link
+
+#TODO put location of chromedriver into config
+let chromedriver = startProcess("/usr/bin/chromedriver")
+let driver = newWebDriver("http://localhost:9515")
+let session = driver.createSession()
+
+session.navigate(test.items[0].link)
+echo session.findElement(".jobsearch-DesktopStickyContainer").get().getText()
+echo session.findElement(".jobsearch-JobDescriptionSection-sectionItem").get().getText()
+echo session.findElement("#salaryGuide").get().getText()
+echo session.findElement("#jobDescriptionText").get().getText()
+echo session.findElement("#jobDescriptionText").get().getText()
+terminate(chromedriver)
+