crawlerlist naver - cafe, blog ; list 가져오는 url 수정

git-svn-id: svn://192.168.0.12/source@326 8346c931-da38-4b9b-9d4c-e48b93cbd075
This commit is contained in:
admin
2016-12-01 02:54:57 +00:00
parent 9306969bea
commit e9063aa9c9
4 changed files with 5 additions and 3 deletions

View File

@@ -51,7 +51,7 @@ QString SNaverBlogAccuracyManage::makeGetListQuery(QString _str,QDate _date)
str += QString::number(m_ncList); str += QString::number(m_ncList);
*/ */
str = "http://cafeblog.search.naver.com/search.naver?where=post&sm=tab_pge&query="; str = "https://search.naver.com/search.naver?where=post&sm=tab_pge&query=";
//str += "http://cafeblog.search.naver.com/search.naver?where=post&sm=tab_pge&query="; //str += "http://cafeblog.search.naver.com/search.naver?where=post&sm=tab_pge&query=";
str += EncodetoUtf8(_str, true); str += EncodetoUtf8(_str, true);
str += "&st=sim&date_option=8&date_from=20030520&date_to="; str += "&st=sim&date_option=8&date_from=20030520&date_to=";

View File

@@ -35,7 +35,7 @@ QString SNaverBlogManage::makeGetListQuery(QString _str,QDate _date)
str += QString::number(m_ncList); str += QString::number(m_ncList);
*/ */
str = "http://cafeblog.search.naver.com/search.naver?where=post&sm=tab_pge&query="; str = "https://search.naver.com/search.naver?where=post&sm=tab_pge&query=";
str += EncodetoUtf8(_str,true); str += EncodetoUtf8(_str,true);
str += "&st=date&date_option=8&date_from="; str += "&st=date&date_option=8&date_from=";
str += strDate; str += strDate;

View File

@@ -14,7 +14,8 @@ SNaverCafeManage::SNaverCafeManage(QObject *pObject) : SManage(pObject)
QString SNaverCafeManage::makeGetListQuery(QString _str,QDate _date,int _nPage) QString SNaverCafeManage::makeGetListQuery(QString _str,QDate _date,int _nPage)
{ {
QString strOut; QString strOut;
strOut = "http://cafeblog.search.naver.com/search.naver?where=article&ie=utf8&query="; //strOut = "http://cafeblog.search.naver.com/search.naver?where=article&ie=utf8&query=";
strOut = "https://search.naver.com/search.naver?where=article&ie=utf8&query=";
strOut += EncodetoUtf8(_str,true); strOut += EncodetoUtf8(_str,true);
strOut += "&t=0&st=date&date_option=6&date_from="; strOut += "&t=0&st=date&date_option=6&date_from=";
strOut += _date.toString("yyyy.MM.dd"); strOut += _date.toString("yyyy.MM.dd");

View File

@@ -2430,6 +2430,7 @@ bool SCrawler::setProxyFromDb()
void SCrawler::setProxy() void SCrawler::setProxy()
{ {
bool ok = setProxyFromFile() || setProxyFromDb(); bool ok = setProxyFromFile() || setProxyFromDb();
//bool ok = false;
if (!ok) if (!ok)
cout << "No Proxy" << endl; cout << "No Proxy" << endl;
} }