Category: Linux

Acfun自动老司机:自动按正则回复私信

有人提议,我就写个。 老规矩,GPLv2,自己测试,风险自担。   https://gist.github.com/cnbeining/b77a4f5762a78fb3878c   #!/usr/bin/env python #coding:utf-8 # Author: Beining –<i@cnbeining.com> # Purpose: Auto reply Acfun’s msg # Created: 01/05/2016 # License: GPLv2 import sys import unittest import requests… Read more »

Acfun黑科技:强制使用乐视源!垃圾画质吃屎去吧!

又及: 关于直接上传到乐视云: 参见 acupload 0.04:巨大更新   更新:我写插件了: https://github.com/cnbeining/acfun-api-replace-server/tree/master/chrome Acfun fix chrome 插件。   Chrome有很多插件,可以直接重定向请求。 我喜欢Switcheroo Redirector 。 加规则: 把 http://cdn.aixifan.com/player/sslhomura/AcNewPlayer151029.swf 重定向到 https://acfun-api.cnbeining.com/static/AcNewPlayer151029.swf ; http://www.acfun.tv/video/getVideo.aspx? 到 https://acfun-api.cnbeining.com/getVideo? 。 服务端在Openshift,前面挂了CF。 懒得配置环境,人多了我也不知道怎样,随便吧。 服务端:https://github.com/cnbeining/acfun-api-replace-server… Read more »

应求写一个刷逼站直播在线人数的脚本/A simple script to get lots of viewers of live.bilibili.com

应求,就这样。 什么Queue啊都不用了,投入list的怀抱吧。 https://gist.github.com/cnbeining/6b2273d7e332f29193d0 #!/usr/bin/env python #coding:utf-8 # Author: Beining –<cnbeining#gmail.com> # Purpose: A simple script to get lots of viewers of Bilibili Live # Created: 08/11/2015 # Error report: http://www.cnbeining.com/?p=952… Read more »