Skip to content

Instantly share code, notes, and snippets.

@shuxiang
shuxiang / shanbay.py
Last active August 31, 2015 05:31
get words from shanbay.com
#coding=utf8
"""pip install gevent pyquery requests weasyprint"""
import gevent
from gevent import monkey
monkey.patch_all()
from pyquery import PyQuery as pq
import requests
import re, sys
from weasyprint import HTML
@shuxiang
shuxiang / poem_rhythm.py
Last active September 22, 2023 20:20
分析客家话与普通话读唐诗是否押韵与合辙
#coding=utf8
"""
git clone https://github.com/shuxiang/hakka-lang-bobai
git clone https://github.com/hxgdzyuyi/tang_poetry
mysql> source tang_poetry.sql
pip3 install flask
pip3 install xpinyin
pip3 install Flask-SQLALchemy
python3 poem_rhythm.py