Skip to content

Instantly share code, notes, and snippets.

@wzhe
wzhe / query_freq.cpp
Created October 9, 2018 05:35
大文件统计与排序 c++11版
//https://gist.github.com/chenshuo/4009225
//http://www.cnblogs.com/baiyanhuang/archive/2012/11/11/2764914.html
#include <algorithm>
#include <fstream>
#include <functional>
#include <iostream>
#include <string>
#include <unordered_map>
#include <utility>
#include <vector>
@wzhe
wzhe / getTieba.py
Created October 3, 2018 14:36
获取用户在贴吧的所有发言
#coding: utf-8
import sys
import urllib
import os
import requests
import threading
from urllib import request
from bs4 import BeautifulSoup
import socket
import time
import urllib.request
import re
import datetime
from datetime import timedelta
import ctypes
import winsound
def search(fromDate,toDate):
found = False
while not found: