多线程删广告
c4droid吧
全部回复
仅看楼主
level 12
百度网盘
用法回头一会发
不会用别怪我。。。。。
2016年12月19日 14点12分 1
level 12
卧槽…近60M,还是压缩的,你用什么写的?
2016年12月20日 01点12分 2
是Windows的其他依赖库用的多。。。
2016年12月20日 03点12分
curl大,而且vs不习惯,库不大会放,不同文件夹放了好几份。而且vs的工程本来就很大
2016年12月20日 03点12分
@-迷茫的梦- 400+ 500-行代码。。。代码存到文本文档可能才几mb
2016年12月20日 03点12分
level 13
让我先瞅瞅。。。
2016年12月20日 02点12分 3
level 13
看了下,,收下了这个代码,
void delete_page(string id,CURL* curl)
{
bduss_lock.lock();
string tbs;
curl_easy_setopt(curl,CURLOPT_COOKIE,bduss.c_str());
curl_easy_setopt(curl, CURLOPT_URL,"https://tieba.baidu.com/dc/common/tbs");
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION,download);
curl_easy_setopt(curl, CURLOPT_WRITEDATA,&tbs);
curl_easy_perform(curl);
//Sleep(4000);
bduss_lock.unlock();
curl_easy_setopt(curl,CURLOPT_COOKIE,bduss.c_str());
curl_easy_setopt(curl, CURLOPT_URL, "https://tieba.baidu.com/f/commit/thread/delete");
//curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, get_erron);
string send_data="Referer: https://tieba.baidu.com/p/"+id;
struct curl_slist* headers=NULL;
headers = curl_slist_append(headers, "Content-Type: application/x-www-form-urlencoded");
headers = curl_slist_append(headers, "Accept: */*");
headers = curl_slist_append(headers, send_data.c_str());
headers = curl_slist_append(headers, "Accept-Language: zh-cn");
headers = curl_slist_append(headers, "User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2;)");
headers = curl_slist_append(headers, "Connection: Keep-Alive");
headers = curl_slist_append(headers, "Cache-Control: no-cache");
headers = curl_slist_append(headers, "DNT: 1");//%E5%9C%A3%E5%AE%89%E5%9C%B0%E5%88%97%E6%96%AF&fid=485838
send_data="commit_fr=pb&ie=utf-8&tbs="+make_tbs(tbs)+"&kw="+url(f_name)+"&fid="+f_id+"&tid="+id;
curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(curl, CURLOPT_POST, 1);
curl_easy_setopt(curl, CURLOPT_POSTFIELDS, send_data.c_str());
bduss_lock.lock();
curl_easy_perform(curl);
Sleep(4000);
bduss_lock.unlock();
}
void delete_reply(string tiezi_id,string qoute_id,CURL* curl)
{
bduss_lock.lock();
string tbs;
curl_easy_setopt(curl,CURLOPT_COOKIE,bduss.c_str());
curl_easy_setopt(curl,CURLOPT_URL,"https://tieba.baidu.com/dc/common/tbs");
curl_easy_setopt(curl,CURLOPT_WRITEFUNCTION,download);
curl_easy_setopt(curl,CURLOPT_WRITEDATA,&tbs);
curl_easy_perform(curl);
bduss_lock.unlock();
string send_data="commit_fr=pb&ie=utf-8&tbs="+make_tbs(tbs)+"&kw="+url(f_name)+"&fid="+f_id+"&tid="+tiezi_id+"&is_vipdel=1&pid="+qoute_id+"&is_finf=false";
//send_data=send_data;
curl_easy_setopt(curl,CURLOPT_COOKIE,bduss.c_str());
curl_easy_setopt(curl, CURLOPT_URL, "https://tieba.baidu.com/f/commit/post/delete");
curl_easy_setopt(curl, CURLOPT_POST, 1);
curl_easy_setopt(curl, CURLOPT_POSTFIELDS, send_data.c_str());
bduss_lock.lock();
curl_easy_perform(curl);
Sleep(4000);
bduss_lock.unlock();
}
有空我用JAVA写个,怼服务器上去,
void input()
{
cout<<"input tie ba name"<<endl;
cin>>f_name;
cout<<"input tie ba id"<<endl;
cin>>f_id;
cout<<"input bduss"<<endl;
cin>>bduss;
cout<<"input delete level,每个一行,0 is endl input"<<endl;
string temp="0";
for(;;)
{
cin>>temp;
if(temp=="0")
break;
else
level.push_back(temp);
}
standard st;
char temp2='n';
for(;;)
{
cout<<"input the least baling"<<endl;
cin>>st.age;
cout<<"input the least fatie"<<endl;
cin>>st.words;
cout<<"end input?"<<endl;
cin>>temp2;
standard_team.push_back(st);
if(temp2=='y')
{
//sort_s();
return;
}
}
}
使用部分的代码。。
,,,
2016年12月20日 03点12分 4
level 12
吧龄从大到小/从小到大输入//我没试过从大到小,反正从小到大正常
原理就是吧龄大于标准,发帖小于标准的就删除
结束广告号标准输入就输入字母 y
bduss格式
BDUSS=(吧务号bduss的值)
2016年12月20日 03点12分 5
level 12
才发现标题多打了个一会[喷]
2016年12月20日 05点12分 6
呸!一楼
2016年12月20日 05点12分
level 12

2016年12月23日 04点12分 7
level 1

2017年01月08日 08点01分 8
level 9
顶!
2017年01月08日 10点01分 9
level 1
[滑稽]
2017年01月08日 13点01分 10
level 12
一品素材越来越日狗了
等着的,等我放假[怒]
2017年01月14日 10点01分 11
1