This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GNU GENERAL PUBLIC LICENSE | |
Version 2, June 1991 | |
Copyright (C) 1989, 1991 Free Software Foundation, Inc., <http://fsf.org/> | |
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | |
Everyone is permitted to copy and distribute verbatim copies | |
of this license document, but changing it is not allowed. | |
Preamble |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ mediainfo 1764019_720p.mp4 | |
General | |
Complete name : 1764019_720p.mp4 | |
Format : MPEG-4 | |
Format profile : Base Media | |
Codec ID : isom | |
File size : 19.3 MiB | |
Duration : 3mn 47s | |
Overall bit rate : 713 Kbps<-------WTF???? | |
Encoded date : UTC 1904-01-01 00:00:00 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import web | |
import requests | |
import sys | |
reload(sys) | |
sys.setdefaultencoding('utf-8') | |
urls = ( | |
'/getVideo', 'getVideo' | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def getvideosize(url, verbose=False): | |
try: | |
if url.startswith('http:') or url.startswith('https:'): | |
ffprobe_command = ['ffprobe', '-icy', '0', '-loglevel', 'repeat+warning' if verbose else 'repeat+error', '-print_format', 'json', '-select_streams', 'v', '-show_streams', '-timeout', '60000000', '-user-agent', BILIGRAB_UA, url] | |
else: | |
ffprobe_command = ['ffprobe', '-loglevel', 'repeat+warning' if verbose else 'repeat+error', '-print_format', 'json', '-select_streams', 'v', '-show_streams', url] | |
logcommand(ffprobe_command) | |
ffprobe_process = subprocess.Popen(ffprobe_command, stdout=subprocess.PIPE) | |
try: | |
ffprobe_output = json.loads(ffprobe_process.communicate()[0].decode('utf-8', 'replace')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
__all__ = ['dilidili_download'] | |
from ..common import * | |
#---------------------------------------------------------------------- | |
def dilidili_parser_data_to_stream_types(typ ,vid ,hd2 ,sign): | |
"""->list""" | |
parse_url = 'http://player.005.tv/parse.php?xmlurl=null&type={typ}&vid={vid}&hd={hd2}&sign={sign}'.format(typ = typ, vid = vid, hd2 = hd2, sign = sign) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Youtube-DL DASH Video and Audio merging script | |
#Written by QuidsUp | |
#Edited by Christoph Korn | |
#Edited by Beining | |
File1New=video.m4v | |
File2New=audio.m4a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Assign existing hostname to $hostn | |
hostn=$(cat /etc/hostname) | |
#Display existing hostname | |
echo "Existing hostname is $hostn" | |
#Ask for new hostname $newhost | |
echo "Enter new hostname: " | |
read newhost |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function enc() { | |
tar zcvf - $1 | openssl aes-256-cbc -salt -out $1.aes && srm -mfzr $1 | |
} | |
function dec() { | |
openssl aes-256-cbc -d -in $1.aes | tar zxvf - && rm -f $1.aes | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Bash upload image to imgur | |
#Beining http://www.cnbeining.com/ | |
#NEED requests !!!!! | |
import sys | |
import os | |
import glob | |
import requests | |
from base64 import b64encode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Biligrab 0.1 | |
Beining@ACICFG | |
http://www.cnbeining.com/ | |
A most simple tool to download comments from Bilibili. | |
Require: Python 2.7 | |
Usage: | |
python Biligrab01.py | |
>>>av12450 | |
>>>p1 |