Example #1
0
        static void Main(string[] args)
        {
            //This will crawl actual nimo
            XmlConfigurator.Configure();
            JobCrawler crawler = new JobCrawler();

            crawler.Crawl(@"https://cebu.mynimo.com/jobs/browse/it");


            //test parse job page
            //HtmlDocument doc = new HtmlDocument();
            //doc.Load(@"html\index.html");

            //string positionTitle = doc.DocumentNode.SelectSingleNode("//h1[@class='search_highlight']").InnerText.Trim();
            //string location = doc.DocumentNode.SelectSingleNode("//div[@class='location search_highlight']").InnerText.Trim();
            //string companyName = doc.DocumentNode.SelectSingleNode("//span[@class='search_highlight']//a").InnerText.Trim();
            //string postedDate = doc.DocumentNode.SelectSingleNode("//div[@id='contentHeading']//div[@class='meta']").InnerText.Trim().Split(new char[] { '\n' })[0].Replace("Posted on : ","");
            //string jobDescription = doc.DocumentNode.SelectSingleNode("//meta[@name='description']").Attributes["content"].Value;

            //System.Console.WriteLine("Position: " + posistionTitle + "\nCompany:" + companyName);
            System.Console.WriteLine("Done");
            System.Console.ReadLine();
        }