Skip to content

Commit

Permalink
fixup htmlq selecctor
Browse files Browse the repository at this point in the history
  • Loading branch information
wpears committed Mar 7, 2024
1 parent 4b6030e commit b79bdf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/save-ecfr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
for PART in "${BASH_PARTS[@]}"; do
echo "$PART"
curl -sSL "https://www.ecfr.gov/api/renderer/v1/content/enhanced/${{ steps.date.outputs.value }}/title-12?chapter=X&part=${PART}" |
htmlq -r 'h1, .source, .authority .citation' |
htmlq -r 'h1, .source, .authority, .citation' |
htmlq -t '.part' |
sed -e '/^ *$/d' -e 's/ / /g' -e 's/–/-/g' |
awk '{$1=$1};1' > "./ecfr/${PART}.txt"
Expand Down

0 comments on commit b79bdf3

Please sign in to comment.