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
# -*- coding: utf-8 -*- | |
import requests | |
import json | |
base_url = "http://fx.sh.189.cn/mininet/wapQcxy/queryNumberPage/3474/" | |
headers = { "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8", |
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
<?php | |
//1. login http://s.dianping.com/event/ | |
//2. javascript: document.write(document.cookie); | |
//3. edit cookie, phone | |
//4. create a website monitor in uptimebot.com | |
ini_set('display_errors',1); //错误信息 | |
ini_set('display_startup_errors',1); //php启动错误信息 | |
error_reporting(-1); //打印出所有的 错误信息 |
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 re | |
import requests | |
from bs4 import BeautifulSoup | |
import traceback | |
import lxml | |
class V2EX(object): | |
headers = { | |
'User-Agent': ( | |
"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 " |
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
//wearversion | |
//wearlog | |
//wearvoiceinputenable | |
//wearvoiceinputdisable | |
//weargoogleapi | |
//assert | |
//pushassert | |
//uplog | |
//upcrash | |
//switchnotificationstatus |
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 python3 | |
# -*- coding: utf-8 -*- | |
import sys, os | |
def check_version(): | |
v = sys.version_info | |
if v.major == 3 and v.minor >= 2: | |
curr = os.path.abspath(os.path.dirname(sys.argv[0])) | |
downpath = os.path.join(curr,'pythonlib') |
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
/** | |
* Copyright (c) 2014 Meizu bigertech, All rights reserved. | |
* http://www.bigertech.com/ | |
* @author liuxing | |
* @date 15/3/16 | |
* @description | |
* | |
*/ | |
var Promise = require('bluebird'), | |
FeedParser = require('feedparser'), |