블로그 smart 3.0 업데이트 ㅎㄷㄷㄷ
git-svn-id: svn://192.168.0.12/source@236 8346c931-da38-4b9b-9d4c-e48b93cbd075
This commit is contained in:
@@ -597,6 +597,10 @@ bool SCrawler::saveFrameUrl(QWebFrame *frame)
|
||||
QWebElement post_top = Find(post,"table","class","post-top");
|
||||
{
|
||||
QWebElement title = Find(post_top,"span","class","pcol1 itemSubjectBoldfont");
|
||||
if(title.isNull())
|
||||
{
|
||||
title = Find(frame->documentElement(), "div", "class", "se_textView");
|
||||
}
|
||||
if (title.toPlainText().isEmpty()==false)
|
||||
{
|
||||
str[E_DATA_TITLE] = title.toPlainText();
|
||||
@@ -606,6 +610,10 @@ bool SCrawler::saveFrameUrl(QWebFrame *frame)
|
||||
|
||||
{
|
||||
QWebElement date = Find(post_top,"p","class","date fil5 pcol2 _postAddDate");
|
||||
if(date.isNull())
|
||||
{
|
||||
date = Find(frame->documentElement(), "span","class","se_publishDate pcol2 fil5");
|
||||
}
|
||||
str[E_DATA_DATE] = date.toPlainText().trimmed().replace("/","-");
|
||||
if ( str[E_DATA_DATE].isEmpty() == false)
|
||||
{
|
||||
@@ -620,7 +628,8 @@ 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^='post-view pcol2 _param(1)']");
|
||||
QWebElement body = post.findFirst("div[class*='pcol2 _param(1)']");
|
||||
if (body.toPlainText().isEmpty()==false)
|
||||
{
|
||||
str[E_DATA_DATA] = body.toPlainText();
|
||||
|
||||
Reference in New Issue
Block a user