# 下载拼音-汉字 html
wget --no-clobber --execute robots=off --no-check-certificate --header="Cookie: t=xxxxxx; r=xxxxx" --user-agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36" -c -l 2 -r --no-parent https://zidian.qianp.com/pinyin.html --accept '*pinyin*.html'
# 转换为 拼音:汉字
grep 'kaiti center nospacing' pinyin_* | sed 's/<li>/\n<li>/g' full.html | grep -v 'img' | grep li | sed 's/<\/ul>/\n<\/ul>/g' | grep -v "gray fright" | grep -v "</ul>" | sed 's/<span class.*span>//g' | sed 's/.*<span>//g' | sed "s/<\/span>/:/g" | sed "s/<\/a>.*$//g" > pinyin.text
[原创] 拼音对应的汉字
最新推荐文章于 2024-10-30 16:40:23 发布