Skip to content

Instantly share code, notes, and snippets.

View vvoody's full-sized avatar

vvoody vvoody

  • Shanghai, China
View GitHub Profile
@vvoody
vvoody / subtitle_downloader.py
Created November 17, 2016 08:49 — forked from ihciah/subtitle_downloader.py
Xunlei subtitle downloader
#!/usr/bin/python
# -*- coding: utf-8 -*-
# __author__ = 'ihciah'
# cid_hash_file function from https://github.com/binux/lixian.xunlei/blob/master/libs/tools.py
import hashlib
import inotify.adapters
import os
import requests
import re
@vvoody
vvoody / readcookies.py
Created April 5, 2012 07:25 — forked from gwarser/readcookies.py
Opera cookies4.dat reader
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
from __future__ import print_function
import os, sys
import struct as st
import time as tm
uint32 = '>I'
int32 = '>i'