Skip to content

Instantly share code, notes, and snippets.

@DoubleShift
DoubleShift / ScanTelecomNums.py
Last active September 15, 2017 18:43
扫电信校友卡号
# -*- 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",
@DoubleShift
DoubleShift / dper.php
Created August 11, 2017 08:48
报名大众点评霸王餐
<?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); //打印出所有的 错误信息
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 "
@DoubleShift
DoubleShift / wechat_command
Created April 17, 2016 19:52
微信内置命令
//wearversion
//wearlog
//wearvoiceinputenable
//wearvoiceinputdisable
//weargoogleapi
//assert
//pushassert
//uplog
//upcrash
//switchnotificationstatus
@DoubleShift
DoubleShift / getGMex.py
Created December 12, 2015 13:55
Download gif from 1024
#!/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')
/**
* 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'),