導航:首頁 > 源碼編譯 > 疾風qq機器人源碼

疾風qq機器人源碼

發布時間:2024-02-27 18:08:22

『壹』 QQ機器人怎麼製作

在網路中搜索【QQ機器人】,從搜索鏈接中找到一個合適的機器人軟體點擊進入對應的下載地址。

在下載地址中挑選合適的版本下載,作為新手,一般下載普通的完整包就可以了。

下載後解壓縮到本地,在解壓後的文件夾中找到執行文件,雙擊打開。

1920年,捷克作家卡雷爾·凱佩克(Karel Capek)發表了科幻劇本《羅薩姆的萬能機器人》。在劇本中,凱佩克把捷克語「Robota」寫成了「Robot」,「Robota」是奴隸的意思。該劇預告了機器人的發展對人類社會的悲劇性影響。

引起了人們的廣泛關注,被當成了「機器人」一詞的起源。在該劇中,機器人按照其主人的命令默默地工作,沒有感覺和感情,以呆板的方式從事繁重的勞動。後來,羅薩姆公司取得了成功,使機器人具有了感情,導致機器人的應用部門迅速增加。



相關介紹:

1920年,捷克作家卡雷爾·凱佩克(Karel Capek)發表了科幻劇本《羅薩姆的萬能機器人》。在劇本中,凱佩克把捷克語「Robota」寫成了「Robot」,「Robota」是奴隸的意思。該劇預告了機器人的發展對人類社會的悲劇性影響。

引起了人們的廣泛關注,被當成了「機器人」一詞的起源。在該劇中,機器人按照其主人的命令默默地工作,沒有感覺和感情,以呆板的方式從事繁重的勞動。後來,羅薩姆公司取得了成功,使機器人具有了感情,導致機器人的應用部門迅速增加。

『貳』 qq聊天機器人的原理

QQ聊天機器人(QQ chatterbot)是一個用來模擬人類對話或聊天的程序。「Eliza」和 「Parry」是早期非常著名的聊天機器人。它試圖建立這樣的程序:至少暫時性地讓一個真正的人類認為他們正在和另一個人聊天。
qq聊天機器人的php原理
<?php

include"http_no_cookie.class.php";

classqq {

public$sid;
public$http;
public$qq_num;

function__construct() {
$this->http =newhttp_no_cookie;
}

functionlogin($qq_num,$qq_pwd) {
echo $data=$this->http->get("http://pt.3g.qq.com/");
$action= preg_match("/action=\"(.+)?\"/",$data,$matches);
$action=$matches[1];
$params=array();
$params["login_url"] ="http://pt.3g.qq.com/s?aid=nLogin";
$params["sidtype"] = 1;
$params["loginTitle"] ="手機騰訊網";
$params["bid"] = 0;
$params["qq"] =$qq_num;
$params["pwd"] =$qq_pwd;
$params["loginType"] =1;
echo$data=$this->http->post($action, http_build_query($params));
if(preg_match("/http:\/\/vc.gtimg.com\//",$data,$matches)){
echo"需要輸入驗證碼";
return0;
exit;
}

if(preg_match("/密碼錯誤/",$data,$matches)){
echo"密碼錯誤";
return1;
exit;
}
$action= preg_match("/sid=(.+?)&/",$data,$matches);
$this->sid =$matches[1];
return$this->sid;
}

functionsendMsg($to_num,$msg,$sid= 0) {
$sid=$sid?$sid:$this->sid;
if(!$sid)
exit("sid值未傳入進去");
$params=array();
$params["msg"] =$msg;
$params["u"] =$to_num;
$params["saveURL"] = 0;
$params["do"] ="send";
$params["on"] = 1;
$params["aid"] ="發送";
$url="http://q16.3g.qq.com/g/s?sid=".$sid;
echo$data=$this->http->post($url, http_build_query($params));
return$data;
}

functiongetMsg($qq_num= 0,$sid= 0) {
$qq_num=$qq_num?$qq_num:$this->qq_num;
if(!$qq_num)
exit("qq_num值未傳入進去");
$sid=$sid?$sid:$this->sid;
if(!$sid)
exit("sid值未傳入進去");
$url="http://q16.3g.qq.com/g/s?sid=".$sid."&3G_UIN=".$qq_num."&saveURL=0&aid=nqqChat";
$data=$this->http->get($url);
preg_match("/name=\"u\" value=\"(\d+)\"/",$data,$matches);
$result["qq"] =$matches[1];
$data=explode("<form",$data);
$data=$data[0];
preg_match_all("/<p>(.+)?<\/p>/",$data,$matches);
unset($matches[1][0]);
$result["content"] =$matches[1];
return$result;
}
functionlogout($sid){
$url="http://pt.3g.qq.com/s?sid=".$sid."&aid=nLogout";
echo$url;
echo$this->http->get($url);
}
functiongetFriendsList($qq_num= 0,$sid= 0){
$result=array();

$qq_num=$qq_num?$qq_num:$this->qq_num;
if(!$qq_num)
exit("qq_num值未傳入進去");
$sid=$sid?$sid:$this->sid;
if(!$sid)
exit("sid值未傳入進去");
$url="http://q16.3g.qq.com/g/s?aid=nqqchatMain&sid=".$sid."&myqq=".$qq_num;
while(true){
$i=1;
$url.="&p=".$i;
$data=$this->http->get($url);
preg_match_all("/u=(.+?)&/",$data,$matches);
foreach($matches[1]as$key=>$value){
$result[]=$value;
}
if(count($matches[1])<13)
break;
$i++;
}
return$result;
}
}

<?php
//PHP代碼
classhttp_no_cookie {

private$curl;
public$user_agent="Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.13 (KHTML, like Gecko) Chrome/0.2.149.29 Safari/525.13";

publicfunctionget($url) {
$this->curl = curl_init();
curl_setopt($this->curl, CURLOPT_CONNECTTIMEOUT, 8);
curl_setopt($this->curl, CURLOPT_URL,$url);
curl_setopt($this->curl, CURLOPT_HEADER, 0);
curl_setopt($this->curl, CURLOPT_USERAGENT,$this->user_agent);
curl_setopt($this->curl, CURLOPT_RETURNTRANSFER, 1);
$data= curl_exec($this->curl);
curl_close($this->curl);
return$data;
}

publicfunctionpost($url,$params) {
$this->curl = curl_init();
curl_setopt($this->curl, CURLOPT_CONNECTTIMEOUT, 8);
curl_setopt($this->curl, CURLOPT_URL,$url);
curl_setopt($this->curl, CURLOPT_HEADER, 1);
curl_setopt($this->curl, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($this->curl, CURLOPT_POST, 1);
curl_setopt($this->curl, CURLOPT_USERAGENT,$this->user_agent);
curl_setopt($this->curl, CURLOPT_POSTFIELDS,$params);
curl_setopt($this->curl, CURLOPT_RETURNTRANSFER, 1);
$data= curl_exec($this->curl);
curl_close($this->curl);
return$data;
}

}

?>

『叄』 開源qq機器人框架能一直用嗎

開源qq機器人框架是能一直用的,關於開源qq機器人的介紹:

閱讀全文

與疾風qq機器人源碼相關的資料

熱點內容
音頻採集單片機 瀏覽:590
加密管的優點 瀏覽:280
dock基礎命令 瀏覽:345
java編程愛好者 瀏覽:723
做外包程序員怎麼樣 瀏覽:865
程序員技術門檻 瀏覽:473
路由花生殼搭建web伺服器地址 瀏覽:541
小米傳送文件用什麼app 瀏覽:102
哪個領域演算法好 瀏覽:380
用命令行編譯java 瀏覽:677
筆趣閣app哪個是正版手機app 瀏覽:427
程序員這個工作好嗎 瀏覽:898
agps定位伺服器地址 瀏覽:659
用水做的解壓玩具怎麼做 瀏覽:418
安卓411能下載什麼 瀏覽:304
小海龜logo命令 瀏覽:493
java製作界面 瀏覽:895
台達plc編程電纜製作 瀏覽:249
30多歲當程序員 瀏覽:442
怎樣把表格轉換成pdf 瀏覽:514