Skip to content

Instantly share code, notes, and snippets.

@akanehara
Last active August 1, 2020 02:06
Show Gist options
  • Save akanehara/9be69a9bf51c6362723907f863780430 to your computer and use it in GitHub Desktop.
Save akanehara/9be69a9bf51c6362723907f863780430 to your computer and use it in GitHub Desktop.
疑惑の総合商社の初出は2002年3月11日
curl -s "https://kokkai.ndl.go.jp/api/speech?$(echo 'spaker=辻本清美&any=疑惑の総合商社' | perl -MURI::Escape -ple '$_=uri_escape $_;')" | xmllint --encode utf-8 --xpath "//speechRecord/session|//speechRecord/date|//speechRecord/speech|//speechRecord/speaker" - | nkf --numchar-input | gtr -d '\n' | gsed -e 's/[:space:]*//g' | gsed -e 's/<[\/0-9a-zA-Z]*>/ /g' | xargs -n4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment