Example #1
0
def main():
    clear_redis()
    # get account_id, weibo_id, weibo_name from MySQL, and write to Redis
    get_data_from_mysql_to_redis()

    # Regrard weibo_name as keywords, crawl on the weixin.sogou.com,
    # If find the weibo_id on the web, then get all the account info,
    # then write to redis, and output other account info to local files
    account_verify_by_weixin_sogou()

    output_from_redis_to_file()
def main():
	clear_redis()
	# get account_id, weibo_id, weibo_name from MySQL, and write to Redis
	get_data_from_mysql_to_redis()

	
	# Regrard weibo_name as keywords, crawl on the weixin.sogou.com,
	# If find the weibo_id on the web, then get all the account info,
	# then write to redis, and output other account info to local files
	account_verify_by_weixin_sogou()

	output_from_redis_to_file()