blob: 0c7e8a48f8e471b03f412c2e7e1d7bb897936921 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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)
|