From 5c11fb28d3f042d4888d2d5ea2952c8d651e8391 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 25 Dec 2022 22:59:03 -0600 Subject: design and data retreieval done --- src/indeedwatcher | Bin 0 -> 797072 bytes src/indeedwatcher.nim | 22 ++++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100755 src/indeedwatcher create mode 100644 src/indeedwatcher.nim (limited to 'src') diff --git a/src/indeedwatcher b/src/indeedwatcher new file mode 100755 index 0000000..6c19c76 Binary files /dev/null and b/src/indeedwatcher 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) + -- cgit v1.2.3