모의 투자가 아닐 경우 IOC 매수

This commit is contained in:
2018-01-01 18:09:09 +09:00
parent eedcebfc3f
commit ae919bdc95
15 changed files with 734 additions and 1634 deletions

View File

@@ -151,7 +151,12 @@ namespace NewsCrawler
doc.LoadHtml(responseFromServer);
string strXPath = "//div[contains(@class, 'flash_tab_lst')]/ul/li";
var lists = doc.DocumentNode.SelectNodes(strXPath);
foreach(var item in lists)
if (lists == null)
{
return;
}
foreach (var item in lists)
{
string strTitle = item.SelectSingleNode(".//a").InnerText;
string strTime = item.SelectSingleNode(".//span[contains(@class, 'flash_press')]").InnerText;
@@ -1209,6 +1214,11 @@ namespace NewsCrawler
string strXPath = "//div[@class='categoryList']//li";
var lists = doc.DocumentNode.SelectNodes(strXPath);
if (lists == null)
{
return;
}
try
{
foreach(var item in lists)