private JobListing ParseIndeedRawData(HtmlNode rawNode) { string baseURL = "http://www.indeed.com"; string rawTitle = rawNode.ChildNodes[1].InnerText; JobListing parsedJob = new JobListing() { SearchEngine = SearchEngines.Indeed, Company = rawNode.ChildNodes[3].InnerText, URL = baseURL + rawNode.ChildNodes[1].ChildNodes[1].Attributes[1].Value, Title = rawTitle.Substring(1, rawTitle.Length - 2) }; return parsedJob; }
private JobListing ParseDiceRawData(HtmlNode rawNode) { JobListing parsedJob = new JobListing() { SearchEngine = SearchEngines.Dice, Title = RemoveBadCharacters(rawNode.ChildNodes[1].InnerText), Company = rawNode.ChildNodes[5].ChildNodes[1].InnerText, URL = rawNode.ChildNodes[1].ChildNodes[1].Attributes[2].Value }; return parsedJob; }