Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 8
On-line CPU(s) list: 0-7
| import mechanize | |
| import sys | |
| br = mechanize.Browser() | |
| response = br.open(sys.argv[1]) | |
| for form in br.forms(): | |
| print "name:[%r] id:[%r] action:[%s]" %(form.name, form.attrs.get('id'), form.action) | |
| print "Controls: " | |
| for control in form.controls: | |
| print ' ', control.type, control.name, repr(control.value) |
| import threading | |
| import feedparser | |
| import urllib2 | |
| import hashlib | |
| import time | |
| import MySQLdb |
| #!/usr/bin/python | |
| # -*- coding: utf-8 -*- | |
| # this shell is uesed for fetching TouHouProject artists's urls ,and prepares for fetch albumss and songs | |
| import urllib2 | |
| import HTMLParser | |
| from urlparse import urljoin | |
| FILTERURLS = ["/cgi-bin/feedback", '?C=N;O=D', "?C=M;O=A", "?C=S;O=A", "?C=D;O=A", "/", "cp_images.sh", "fix_unicode.sh", "mv_images.sh", "ren13.py"] |
| #!/usr/bin/python3 | |
| import json | |
| import urllib.request, urllib.parse | |
| def google_ajax_search(searchfor): | |
| query = urllib.parse.urlencode({'q': searchfor}) | |
| url = 'http://ajax.googleapis.com/ajax/services/search/web?v=1.0&%s' % query | |
| search_response = urllib.request.urlopen(url) | |
| search_results = search_response.read().decode("utf8") | |
| results = json.loads(search_results) |
| class memoize: | |
| # class as decorator | |
| def __init__(self, function): | |
| self.function = function | |
| self.memoized = {} | |
| def __call__(self, *args): | |
| try: | |
| return self.memoized[args] | |
| except KeyError: |
| from gevent import queue | |
| q = queue.Queue() | |
| def queue_put(msg): | |
| q.put_nowait(msg) | |
| import random | |
| try: | |
| import cStringIO as StringIO | |
| except: | |
| import StringIO | |
| chs = ['a','b','c','d','e','f','g','h','i','j', | |
| 'k','l','m','n','o','p','q','r','s','t','u','v','w','x', | |
| 'y','z','A','B','C','D','E','F','G','H','I','J','K','L', |
| #!/usr/bin/python | |
| import functools | |
| from threading import RLock | |
| import logging | |
| class CacheNullValue(object): | |
| pass |
| import cherrypy | |
| from jinja2 import Environment, FileSystemLoader | |
| import os | |
| def create_server(): | |
| euterpectl = EuterpeRoot() | |
| route = cherrypy.dispatch.RoutesDispatcher() | |
| route.mapper.explicit = False |