#/bin/bash
if [ "$188888" = "88888" ]; then
cph="88888"
else
cph="$1"
fi
curl http://www.stc.gov.cn/search/vehicle_peccacy_result.asp -d "cph=%D4%C1B$cph&cl=02" |iconv -f GB18030 -t UTF-8|sed -n -e '/BEGIN/,/END/p' |sed -e "s/<[^>]*>//g"|sed -e "s/\W*//g"|sed "/^$/d"
首先将车牌信息POST到车管所网站,从获取的内容中剥离出主要信息。