文件名称:qtscanner
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:1.21mb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
网页爬虫,QT实现。网页爬去分析。Crawler::Crawler(QUrl &url,QTreeWidget *tr) : QWidget() {
-
Crawler::~Crawler(){
http->abort()
delete http
delete tr_result
delete root
delete cookie_tr
}
Crawler::Crawler(QUrl &url,QTreeWidget*tr) : QWidget() {
http=new QHttp(this)
connect(http,SIGNAL(done(bool)),this,SLOT(getPage()))
//settings ...
QSettings settings
if(settings.value("network/useproxy").toBool())
{
http->setProxy(
settings.value("network/cra_host").toString(),
settings.value("network/cra_port").toInt(),
settings.value("network/cra_name").toString(),
settings.value("network/cra_pass").toString()
)
}
//the request ...
QHttpRequestHeader header
header.setValue("User-agent",settings.value("crawler/user-agent","Firefox 3").toString())
header.setValue("Host",url.host())
header.setRequest("GET",url.path())
http->setHost(url.host(),url.port(80))
-
Crawler::~Crawler(){
http->abort()
delete http
delete tr_result
delete root
delete cookie_tr
}
Crawler::Crawler(QUrl &url,QTreeWidget*tr) : QWidget() {
http=new QHttp(this)
connect(http,SIGNAL(done(bool)),this,SLOT(getPage()))
//settings ...
QSettings settings
if(settings.value("network/useproxy").toBool())
{
http->setProxy(
settings.value("network/cra_host").toString(),
settings.value("network/cra_port").toInt(),
settings.value("network/cra_name").toString(),
settings.value("network/cra_pass").toString()
)
}
//the request ...
QHttpRequestHeader header
header.setValue("User-agent",settings.value("crawler/user-agent","Firefox 3").toString())
header.setValue("Host",url.host())
header.setRequest("GET",url.path())
http->setHost(url.host(),url.port(80))
(系统自动生成,下载前可以参看下载内容)
下载文件列表
qtscanner/2GWVS.pro
qtscanner/2GWVS.pro.user
qtscanner/2gwvs.qrc
qtscanner/database/2gwvs.db3
qtscanner/gpl.txt
qtscanner/img/2gwvs-logo.png
qtscanner/img/2gwvs.ico
qtscanner/img/crawler.ico
qtscanner/img/edit_pref.ico
qtscanner/Makefile
qtscanner/Makefile.Debug
qtscanner/Makefile.Release
qtscanner/object_script.2gwvs.Debug
qtscanner/object_script.2gwvs.Release
qtscanner/qrc_2gwvs.cpp
qtscanner/rcc.exe
qtscanner/src/crawler.cpp
qtscanner/src/crawler.h
qtscanner/src/formCatched.cpp
qtscanner/src/formCatched.h
qtscanner/src/issuesDatabase.cpp
qtscanner/src/issuesDatabase.h
qtscanner/src/issuesExecuter.cpp
qtscanner/src/issuesExecuter.h
qtscanner/src/main.cpp
qtscanner/src/mainWindow.cpp
qtscanner/src/mainWindow.h
qtscanner/src/preferences.h
qtscanner/src/runScanner.cpp
qtscanner/src/runScanner.h
qtscanner/src/urlCatched.cpp
qtscanner/src/urlCatched.h
qtscanner/src/urlTreeItem.cpp
qtscanner/src/urlTreeItem.h
qtscanner/src/urlTreeModel.cpp
qtscanner/src/urlTreeModel.h
qtscanner/src/webView.cpp
qtscanner/src/webView.h
qtscanner/ui/main.ui
qtscanner/ui/preferences.ui
qtscanner/ui/runScanner.ui
qtscanner/ui/webView.ui
qtscanner/ui_main.h
qtscanner/ui_preferences.h
qtscanner/ui_runScanner.h
qtscanner/ui_webView.h
qtscanner/database
qtscanner/debug
qtscanner/img
qtscanner/release
qtscanner/src
qtscanner/ui
qtscanner
qtscanner/2GWVS.pro.user
qtscanner/2gwvs.qrc
qtscanner/database/2gwvs.db3
qtscanner/gpl.txt
qtscanner/img/2gwvs-logo.png
qtscanner/img/2gwvs.ico
qtscanner/img/crawler.ico
qtscanner/img/edit_pref.ico
qtscanner/Makefile
qtscanner/Makefile.Debug
qtscanner/Makefile.Release
qtscanner/object_script.2gwvs.Debug
qtscanner/object_script.2gwvs.Release
qtscanner/qrc_2gwvs.cpp
qtscanner/rcc.exe
qtscanner/src/crawler.cpp
qtscanner/src/crawler.h
qtscanner/src/formCatched.cpp
qtscanner/src/formCatched.h
qtscanner/src/issuesDatabase.cpp
qtscanner/src/issuesDatabase.h
qtscanner/src/issuesExecuter.cpp
qtscanner/src/issuesExecuter.h
qtscanner/src/main.cpp
qtscanner/src/mainWindow.cpp
qtscanner/src/mainWindow.h
qtscanner/src/preferences.h
qtscanner/src/runScanner.cpp
qtscanner/src/runScanner.h
qtscanner/src/urlCatched.cpp
qtscanner/src/urlCatched.h
qtscanner/src/urlTreeItem.cpp
qtscanner/src/urlTreeItem.h
qtscanner/src/urlTreeModel.cpp
qtscanner/src/urlTreeModel.h
qtscanner/src/webView.cpp
qtscanner/src/webView.h
qtscanner/ui/main.ui
qtscanner/ui/preferences.ui
qtscanner/ui/runScanner.ui
qtscanner/ui/webView.ui
qtscanner/ui_main.h
qtscanner/ui_preferences.h
qtscanner/ui_runScanner.h
qtscanner/ui_webView.h
qtscanner/database
qtscanner/debug
qtscanner/img
qtscanner/release
qtscanner/src
qtscanner/ui
qtscanner
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.