功能
给定用户的ID(微相册的数字ID,非昵称),下载用户相册中所有图片到本地
所需模块
rsa
,threadpool
登陆
请先更改login_weibo
中的用户名及密码
/* | |
C grammar defintion for use with JavaCC | |
Contributed by Doug South (dsouth@squirrel.com.au) 21/3/97 | |
This parser assumes that the C source file has been preprocessed : all | |
#includes have been included and all macros have been expanded. I accomplish | |
this with "gcc -P -E <source file> > <output file>". | |
There is a problem with compiler specific types, such as __signed, __const, |
给定用户的ID(微相册的数字ID,非昵称),下载用户相册中所有图片到本地
rsa
,threadpool
请先更改login_weibo
中的用户名及密码
#!/usr/bin/env python | |
#coding:utf-8 | |
""" | |
download files from pan.baidu.com using https://github.com/PeterDing/iScript/blob/master/pan.baidu.com.py#pan.baidu.com.py | |
use crontab to run it in a specific time interval to check if it has failed | |
if failed, restart it | |
Created on 2015.10.31 | |
""" |
#!/usr/bin/env python | |
# coding:utf-8 | |
""" | |
A 'Crawler' for http://msdn.itellyou.cn/ | |
""" | |
import re | |
import urllib | |
import urllib2 |
import os | |
import socket | |
def main(): | |
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) | |
sock.bind(('127.0.0.1', 9999)) | |
sock.listen() |
import sys | |
import logging | |
from multiprocessing.pool import Pool | |
logging.basicConfig(stream=sys.stdout, level=logging.INFO, | |
format='%(asctime)s - %(processName)s %(threadName)s - %(name)s - %(levelname)s - %(message)s') | |
if __name__ == "__main__": | |
def job(name): | |
logger = logging.getLogger(name) |
import scala.tools.nsc.{Global, Settings} | |
import scala.reflect.internal.util.BatchSourceFile | |
import tools.nsc.io.{VirtualDirectory, AbstractFile} | |
import scala.reflect.internal.util.AbstractFileClassLoader | |
import java.security.MessageDigest | |
import java.math.BigInteger | |
import collection.mutable | |
import java.io.File | |
object CompileTest { |
import os | |
import logging | |
import requests | |
from multiprocessing.pool import ThreadPool | |
from multiprocessing import Queue | |
def download(task_file, repository, pool_size=8): | |
logger = logging.getLogger('downloader') | |
logging.basicConfig(stream=sys.stdout, level=logging.INFO) |
#功能 备份QQ空间说说(先用浏览器登陆获取Cookie)
#用法
先将Cookie及用户写入config.json
中,格式如下
{
"shuoshuo":"<shuoshuo_cookie>",
"friends":"<friends_cookie>",
/* | |
* R2LParser.c | |
* | |
* Recognize C declaration use Right-Left Method(from http://ieng9.ucsd.edu/~cs30x/rt_lt.rule.html) | |
* | |
* The "right-left" rule is a completely regular rule for deciphering C | |
* declarations. It can also be useful in creating them. | |
* | |
* First, symbols. Read | |
* * as "pointer to" - always on the left side |