Biligrab紧急升级0.98.9:换KEY
没想到又把我挤兑到用老Key了。 https://github.com/cnbeining/Biligrab
wp-search-with-algolia
domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init
action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/vhosts/cnbeining.com/html/wp-includes/functions.php on line 6121没想到又把我挤兑到用老Key了。 https://github.com/cnbeining/Biligrab
有人提议,我就写个。 老规矩,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 »
原作者的gists死了,备份一下以免灭失。 https://kirito.me/python/download-bilibili-historical-danmu.html #!/usr/bin/env python # -*- coding=utf-8 -*- # 哔哩哔哩历史弹幕 (XML) 下载器 # 使用:downdanmu.py av314 import StringIO import datetime import gzip import json import os import re import urllib2… Read more »
主要为了算PMF。 不授权任何转载。 import xml.etree.ElementTree as ET import requests ######################################################################## class BilibiliDanmaku: “””””” cid = 0 danmaku_list = [] danmaku_url = ‘http://comment.bilibili.com/{cid}.xml’ danmaku_xml = ” danmaku_xml_tree = {} danmaku_pmf_data = {}… Read more »
又及: 关于直接上传到乐视云: 参见 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 »
aid和mid自己想办法,要是不会就别用了。 https://gist.github.com/cnbeining/a3b710bacfdc10074695 即使是packer这坨屎也能挖出花来。 代码下面。
虽然我不用他的垃圾直播。 试试两个传图片的API,还有百度OCR的API。 求测试后反馈,无论是不是好用。 https://github.com/cnbeining/bilibili-grab-sliver
逼我用浏览器UA?怕啥 不服就干。 https://github.com/cnbeining/Biligrab 代码下面。
def get_max_time(normal = ”, large = ”): normal_tuple = normal.split() large_tuple = large.split() max_time = 100 #资材100x for i, j in zip(normal_tuple, large_tuple): time_this = int(int(j) / int(i)) max_time =… Read more »
import urllib.parse as urlparse import http.client as httplib #———————————————————————- def resolve_http_redirect(url, depth=0): “””http://www.zacwitte.com/resolving-http-redirects-in-python “”” if depth > 10: raise Exception(“Redirected “+depth+” times, giving up.”) o = urlparse.urlparse(url,allow_fragments=True) conn = httplib.HTTPConnection(o.netloc)… Read more »