Skip to content

Instantly share code, notes, and snippets.

View loony175's full-sized avatar

王国里最美的女人 loony175

View GitHub Profile
@loony175
loony175 / migu.py
Created October 9, 2018 17:25
MiguVideo extractor
#!/usr/bin/env python3
import argparse
import arrow
import hashlib
import json
import random
import requests
OTK = '524832,975920,386494,9643'
@loony175
loony175 / recorder.py
Last active August 27, 2018 19:42
Record stage stream "nonstop"
#!/usr/bin/env python3
import argparse
import json
import pathlib
import platform
import re
import subprocess
import sys
import time
@loony175
loony175 / config.yml
Last active November 22, 2018 18:01
A script for managing Aliyun OSS live channels
access_key_id:
access_key_secret:
endpoint:
bucket_name:
#!/usr/bin/env python3
# - Open Youku video page with web inspector open, search for appinfo, right
# click on the request, and "copy as cURL";
#
# - In a Linux terminal, run the following command from a fresh directory:
#
# curl ... | python3 -c "$(curl -s https://gist.githubusercontent.com/zmwangx/79f44ea27915a921b9b06e60043a9468/raw/process-youku-appinfo-jsonp)"
#
# where curl ... is the command you copied in the previous step.
@loony175
loony175 / README.md
Last active September 8, 2018 09:23
Information about former members of SNH48 Group
@loony175
loony175 / MemberList
Last active August 23, 2018 18:18
XIIed? Forever XII!
# curl -s http://h5.snh48.com/resource/jsonp/members.php?gid=10 | jq '.rows[] | select(.tname == "XII") | select(.status == "99")'
{
"sid": "10110",
"gid": "10",
"gname": "SNH",
"sname": "陈韫凌",
"fname": "陈 韫凌",
"pinyin": "Chen YunLing",
"abbr": "CYL",
@loony175
loony175 / Catchphrase
Last active August 23, 2018 18:19
Catchphrase of members of SNH48 Group
#!/bin/bash
for gid in 10 20 30 40 50 ; do
curl -s http://h5.snh48.com/resource/jsonp/members.php?gid=$gid | jq '.rows[] | {(.sname): .catch_phrase}' | grep -Po '"[^{|}]*'
done
"陈观慧": "我对你“艾艾艾”不完。。。。"
"陈思": "教练教练甜过初恋,初恋初恋不如教练"
"戴萌": "今天开始kirakira从今以后pika"
"蒋芸": "每天都要多芸转晴"
@loony175
loony175 / requirements.txt
Last active August 23, 2018 18:20
Get the review URL of a specified stage
requests
@loony175
loony175 / member_id.json
Last active September 1, 2018 08:08
Pocket48Live
{
"张语格": 1,
"陈观慧": 3,
"呵呵姐": 4,
"袁雨桢": 5,
"董艳芸": 6,
"冯薪朵": 7,
"孙芮": 8,
"何晓玉": 10,
"温晶婕": 11,