找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 23|回复: 3

人人影视自动上传脚本c++版

[复制链接]

6

主题

76

回帖

200

积分

中级会员

积分
200
发表于 2018-12-7 16:13:25 | 显示全部楼层 |阅读模式
本帖最后由 zangdi 于 2018-12-7 21:12 编辑

之前python3确实太麻烦了,所以又写了一个c++版,就当复习了一下c++吧
这个版本不用那么复杂了
只需要
[ol]
  • yum install -y gcc
  • yum install curl -y
  • yum install gcc-c++ -y
  • [/ol]复制代码
    就完全ok了


    服务器需要安装curl,因为借助的curl


    直接上代码吧


    [ol]
  • #include
  • #include
  • #include
  • #include
  • #include
  • #include
  • using namespace std;
  • class dict{
  • string dict_key;
  • string dict_value;
  • public:
  • dict(string key,string value){
  • dict_key=key;
  • dict_value=value;
  • }
  • string getkey();
  • string getvalue();
  • void show();
  • };
  • string dict::getkey(){
  • return dict_key;
  • }
  • string dict::getvalue(){
  • return dict_value;
  • }
  • void dict::show(){
  • cout result;
  • while(static_index复制代码

    运行截图






    使用方法
    使用方法请到github或者我的博客上看哈
    我的github
    https://github.com/balckwilliam/renrenupload
    我的博客
    https://blog.mark56.cn/archives/102/
    后续会适配aria2
    后续上传适配一下其他的上传脚本






    python3+shell请访问下边的帖子:
    https://www.hostloc.com/thread-501738-1-1.html
  • 回复

    使用道具 举报

    1

    主题

    87

    回帖

    225

    积分

    中级会员

    积分
    225
    发表于 2018-12-7 16:14:24 | 显示全部楼层
    不错,有机会试一下。
    回复

    使用道具 举报

    8

    主题

    127

    回帖

    304

    积分

    中级会员

    积分
    304
    发表于 2018-12-7 16:16:18 | 显示全部楼层
    技术帝!
    回复

    使用道具 举报

    68

    主题

    1241

    回帖

    2708

    积分

    金牌会员

    积分
    2708
    发表于 2018-12-7 18:17:42 | 显示全部楼层
    真·大佬   
    感谢分享
    回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    Archiver|手机版|小黑屋|Discuz! X

    GMT+8, 2025-5-11 19:12 , Processed in 0.016384 second(s), 4 queries , Gzip On, Redis On.

    Powered by Discuz! X3.5

    © 2001-2024 Discuz! Team.

    快速回复 返回顶部 返回列表