This file contains hidden or 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
#-*- coding:utf-8 -*- | |
""" | |
Date 15-11-11 lastest progres | |
""" | |
import time | |
import sys | |
import re |
This file contains hidden or 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
#-*- coding:utf-8 -*- | |
""" | |
Date 15-11-11 lastest progres | |
""" | |
import time | |
import sys | |
import re | |
import gevent |
This file contains hidden or 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
#coding=utf-8 | |
def function_get_args(a,b,c): | |
print a,b,c | |
return_val = a * 5 | |
return return_val | |
def function_get_args_return_tuple(a,b,c): | |
print a,b,c |
This file contains hidden or 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
#-*- coding:utf-8 -*- | |
''' For avoiding keyerror ''' | |
from gevent import monkey | |
monkey.patch_all() | |
import gevent | |
import sys | |
import re |
This file contains hidden or 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
# coding=UTF-8 | |
import urllib2 | |
import optparse | |
from bs4 import BeautifulSoup | |
from urlparse import urlsplit | |
from os.path import basename | |
from PIL import Image | |
from PIL.ExifTags import TAGS | |
def findImages(url): |
This file contains hidden or 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
# coding=UTF-8 | |
import urllib | |
from anonBrowser import * | |
import json | |
import re | |
import urllib2 | |
class reconPerson: | |
def __init__(self, handle): | |
self.handle = handle |
This file contains hidden or 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
''' http://blog.csdn.net/CUMT_GPF/article/details/46390509 ''' | |
import re | |
import sys | |
import requests | |
from pyquery import PyQuery as pq | |
reload(sys) | |
sys.setdefaultencoding('GBK') | |
#fp = open("d:/result.txt",'w') | |
url = 'http://xlfans.com/' |
This file contains hidden or 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
#-*- coding:utf-8 -*- | |
import sys | |
import re | |
import requests | |
import gevent | |
from bs4 import BeautifulSoup | |
import urlparse | |
import time |
This file contains hidden or 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
#-*- coding:utf-8 -*- | |
import sys | |
import re | |
import requests | |
import gevent | |
from bs4 import BeautifulSoup | |
import urlparse | |
import time | |
This file contains hidden or 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 MYSQLdb | |
db = MYSQLdb.connect(host="localhost", #host | |
user="john", # username | |
passwd="megajonhy", #password | |
db="jonhydb") | |
# you must create a Cursor object. It will let you execute all the queries you need | |
cur = db.cursor() | |
# Use all the SQL you like |