From 7994b43baa61e0aeee3f2ea7415c2d9fa90a02ee Mon Sep 17 00:00:00 2001 From: admin Date: Thu, 31 Dec 2015 04:41:04 +0000 Subject: [PATCH] =?UTF-8?q?=EB=84=A4=EC=9D=B4=EB=B2=84=20=EB=B8=94?= =?UTF-8?q?=EB=A1=9C=EA=B7=B8=20smart=203.0=20=EA=B4=80=EB=A0=A8=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://192.168.0.12/source@237 8346c931-da38-4b9b-9d4c-e48b93cbd075 --- CrawlerProcess/scrawler.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CrawlerProcess/scrawler.cpp b/CrawlerProcess/scrawler.cpp index 85f307c..8b30247 100644 --- a/CrawlerProcess/scrawler.cpp +++ b/CrawlerProcess/scrawler.cpp @@ -628,8 +628,9 @@ bool SCrawler::saveFrameUrl(QWebFrame *frame) { //QWebElement body = Find(post,"div","class","post-view pcol2 _param(1)"); - //QWebElement body = post.findFirst("div[class^='post-view pcol2 _param(1)']"); - QWebElement body = post.findFirst("div[class*='pcol2 _param(1)']"); + QWebElement body = post.findFirst("div[class^='post-view pcol2 _param(1)']"); + if(body.isNull()) + body = post.findFirst("div[class*='pcol2 _param(1)']"); if (body.toPlainText().isEmpty()==false) { str[E_DATA_DATA] = body.toPlainText();