blog_list 에서 url 가져오는 방식 변경
git-svn-id: svn://192.168.0.12/source@214 8346c931-da38-4b9b-9d4c-e48b93cbd075
This commit is contained in:
@@ -323,7 +323,7 @@ void SCrawler::saveFrameList(QWebFrame *frame)
|
||||
{
|
||||
QString str = "sp_blog_";
|
||||
QWebElement sub = Find(eleMain,"li","id",str+QString::number(i+1));
|
||||
QString strUrl = Find(sub,"a","class","url").toPlainText();
|
||||
QString strUrl = Find(sub,"a","class","url").attribute("href");
|
||||
if (strUrl.isEmpty())
|
||||
{
|
||||
//m_bLast = true;
|
||||
@@ -331,6 +331,9 @@ void SCrawler::saveFrameList(QWebFrame *frame)
|
||||
break;
|
||||
}
|
||||
|
||||
strUrl = strUrl.replace("http://","");
|
||||
strUrl = strUrl.replace("?Redirect=Log&logNo=","/", Qt::CaseInsensitive);
|
||||
|
||||
QStringList strList = strUrl.split('/');
|
||||
|
||||
QString strBlogMe = "blog.me";
|
||||
@@ -385,7 +388,7 @@ void SCrawler::saveFrameList(QWebFrame *frame)
|
||||
{
|
||||
QString str = "sp_blog_";
|
||||
QWebElement sub = Find(eleMain,"li","id",str+QString::number(i+1));
|
||||
QString strUrl = Find(sub,"a","class","url").toPlainText();
|
||||
QString strUrl = Find(sub,"a","class","url").attribute("href");
|
||||
if (strUrl.isEmpty())
|
||||
{
|
||||
|
||||
@@ -393,7 +396,8 @@ void SCrawler::saveFrameList(QWebFrame *frame)
|
||||
m_bUse = true;
|
||||
break;
|
||||
}
|
||||
|
||||
strUrl = strUrl.replace("http://","");
|
||||
strUrl = strUrl.replace("?Redirect=Log&logNo=","/", Qt::CaseInsensitive);
|
||||
QStringList strList = strUrl.split('/');
|
||||
|
||||
QString strBlogMe = "blog.me";
|
||||
|
||||
Reference in New Issue
Block a user