当前位置:编程学习 > C/C++ >>

paip.c++ 操作360浏览器总结

paip.c++ 操作360浏览器总结..
 
 
 
 
作者Attilax ,  EMAIL:1466519819@qq.com 
来源:attilax的专栏
地址:http://blog.csdn.net/attilax
 
 
 
 
主要是为例不个csdn文章分呱类..旧前一瓦文章马种类..
流程是. 
1.先网络编程,不个种类的html下载下来..
csdnCatGetor.exe   url..
2.在正则表达式抓取catid,catname保存到文件..
3.保存所有的文章到sqllite数据库..是用blog_backup做的..
4.导入catid,catname到cate表格:::
5.关联查询..导出artid,catid到个文件..
csdnCatGetor.exe   -exportArtidNCateid   "E:\blog_backup\myblog.db" "select bid,title,blog_url,cate,c.[cateid],c.catname 
 from blog ,cate c where blog.[cate]=c.catname and bid>50"
6.遍历artid,catid文件,生成操作url文件..
----------------------------------------
#j::
 
 
;Run www.jandan.net
/*
http://blog.csdn.net/attilax/article/details/9531373
http://write.blog.csdn.net/article/getcategory?id=9531373
http://write.blog.csdn.net/article/setcategory?id=9531373&cats=1640209
http://write.blog.csdn.net/article/getcategory?id=9531373
 
 
mysql(9)
ms-sql(0)
oracle(2)
.net(1)
php(4)
java(0)
js(1)
性能优化(2)
程序安全(0)
ANDROID(0)
IOS(0)
ux/ue用户体验(4)
other(6)
c++/qt(11)
输入法(4)
*/
 
 
 
 
 
 
 
 
Loop, read, C:\csdnArtidNCatid.txt
{
/*
    Loop, parse, A_LoopReadLine, `,
    {
        MsgBox, Field number %A_Index% is %A_LoopField%.
}
*/
lineC9= %A_LoopReadLine%
 
 
StringSplit, word_array, lineC9, `,
 
 
$artid=%word_array1%
$catid=%word_array2%
$urlTemplete=http://write.blog.csdn.net/article/setcategory?id=@artid&cats=@catid
StringReplace, $url, $urlTemplete, @artid , %$artid%
StringReplace, $url, $url, @catid , %$catid%
 
 
FileAppend, %$url%`n, c:\csdnSetCateUrlC9.txt
;MsgBox,%$url%
 
 
}
 
 
MsgBox,ok
Return
 
 
7.操作360浏览器执行url指令
------------------------
#k::
 
 
Loop, read,  c:\csdnSetCateUrlC9.txt
{
lineC920= %A_LoopReadLine%
WinActivate, ahk_class 360se6_Frame
WinWaitActive, ahk_class 360se6_Frame, , 3
if ErrorLevel
{
    MsgBox, WinWaitActivex timed out.
    return
}
 
 
ControlSetText,SmartUI.Win32.Edit2,  %lineC920%,ahk_class 360se6_Frame
ControlFocus, SmartUI.Win32.Edit2, ahk_class 360se6_Frame
Send   {Enter}
Sleep, 5000
;MsgBox,%lineC920%
 
 
}
 
8.监视流程
-----------
add a filter..
allow host only:   write.blog.csdn.net;blog.csdn.net
拦截jpg,js,css,swf..
补充:软件开发 , C++ ,
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,