Skip to content

Instantly share code, notes, and snippets.

SgDylan Sg4Dylan

Block or report user

Report or block Sg4Dylan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Sg4Dylan
Sg4Dylan / postLiveDanmaku.py
Created Sep 5, 2017
简单的Bilibili直播弹幕发送实现
View postLiveDanmaku.py
#!/usr/bin/env python
#coding:utf-8
# Author: Sg4Dylan --<sg4dylan#gmail.com>
# Update: 9/5/2017
import requests
import ast
def sessionPool(pool_connections=2, pool_maxsize=5, max_retries=5):
session = requests.Session()
@Sg4Dylan
Sg4Dylan / viewer_image_0.1.8_2018-02-09.js
Last active Oct 2, 2019
bookwalker.com.tw online reader DRM
View viewer_image_0.1.8_2018-02-09.js
This file has been truncated, but you can view the full file.
/**
Open Source Software Licenses
PUBLUS
Copyright(c) 2013-2014 ACCESS CO., LTD. All rights reserved.
This software includes all or part of the following open source software which is available under each license terms and conditions as follows:
* Backbone.js 0.9.2
@Sg4Dylan
Sg4Dylan / viewer_loader_0.1.8_2018-02-09.js
Last active May 20, 2018
bookwalker.com.tw online reader DRM
View viewer_loader_0.1.8_2018-02-09.js
/**
Open Source Software Licenses
PUBLUS
Copyright(c) 2013-2014 ACCESS CO., LTD. All rights reserved.
This software includes all or part of the following open source software which is available under each license terms and conditions as follows:
* LAB.js (LABjs :: Loading And Blocking JavaScript)
v2.0.3 (c) Kyle Simpson
@Sg4Dylan
Sg4Dylan / NginxAutoindexExporter.js
Last active Sep 15, 2018
配合 phuslu 的 autoindex,实现 nginx 自动列目录导出到 aria2
View NginxAutoindexExporter.js
// ==UserScript==
// @name NginxAutoindexExporter
// @namespace http://tampermonkey.net/
// @version 20180915(0.2)
// @description Export link from nginx autoindex to aria2
// @author SgDylan
// @match https://example.com/*
// @grant none
// ==/UserScript==
@Sg4Dylan
Sg4Dylan / auto_poster.py
Last active Dec 4, 2017
自动糊海报工具及配置文件
View auto_poster.py
#!/usr/bin/env python
#coding:utf-8
# Author: Sg4Dylan --<sg4dylan#gmail.com>
# Created: 7/14/2017
from PIL import Image,ImageFont,ImageDraw
import render_config as config
def auto_poster(text: dict, param: dict):
View get_play_status_from_netease_music.py
#!/usr/bin/env python
#coding:utf-8
# Author: Sg4Dylan -- <sg4dylan#gmail.com>
# Update: 10/13/2017
'''
透过 Chrome Debug Protocol 读取网易云音乐当前播放状态
启动播放器时附带启动参数
--remote-debugging-port=8080
@Sg4Dylan
Sg4Dylan / AutoSrunWebAuth.py
Last active Dec 4, 2017
模拟深澜Srun系统认证(Python/Shell)
View AutoSrunWebAuth.py
#!/usr/bin/env python
#coding:utf-8
# Author: Sg4Dylan --<sg4dylan#gmail.com>
# Purpose: A simple script to complete srun's webauth
# Created: 03/01/2017
# 配合 crontab 使用
# */5 6-22 * * * /usr/bin/python3 /pathtoyourscript/LoginSrunWebAuth.py
import requests
@Sg4Dylan
Sg4Dylan / bilibili_download_them_all.py
Last active Nov 6, 2019
通过You-get批量下载Bilibili合集视频
View bilibili_download_them_all.py
#!/usr/bin/env python
#coding:utf-8
# Author: Sg4Dylan --<sg4dylan#gmail.com>
# Purpose: A simple script to download video from Bilibili
# Created: 08/07/2016
import sys
from subprocess import call
def check_and_go(args):
@Sg4Dylan
Sg4Dylan / getLiveComment.py
Last active Feb 14, 2018
简单的Bilibili直播弹幕抓取实现
View getLiveComment.py
#!/usr/bin/env python
import socket
import binascii
import threading
import time
import json
reconnect_flag = 0
You can’t perform that action at this time.