I read the Blackberry website using Selenium WebDriver and phantomDriver and CSQuery in .NET , and I have not had a problem with updates so far.
//Creating dynamic browser and download the page source code //based on apipath by using selenium web driver public IWebDriver driver; driver = new PhantomJSDriver(phantomDriverPath); //driver=new ChromeDriver(chromeDriverPath); driver.Url = "https://appworld.blackberry.com/webstore/search/"+appname+"/lang=en&countrycode=IN"; driver.Navigate(); //Waiting for page loading Thread.Sleep(2000);//2 seconds if (driver.PageSource != null){ //Assigning downloaded page source code to CSQuery CQ dom = CQ.CreateDocument(driver.PageSource); //Waiting for page loading driver.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromSeconds(30)); //find the elements what ever you want based on the id,class name,tag name string title1 = dom["#topListtopResultsAppTemplateHTML_listItem_0_title"].Text(); }
Before encoding, download the Selenium WebDriver and phantom driver to your PC (for example, C:\Users\rakesh\Documents\Selenium\PhantomJSDriver ) and install CSQuery in Visual Studio.
Install webdriver:
Install-Package Selenium.WebDriver
Install phantomjs:
Install-Package phantomjs.exe
source share