Skip to content

Instantly share code, notes, and snippets.

@thbkrkr
Created December 16, 2020 19:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thbkrkr/241d49873038c3b9dabbef0c4f774791 to your computer and use it in GitHub Desktop.
Save thbkrkr/241d49873038c3b9dabbef0c4f774791 to your computer and use it in GitHub Desktop.
Automate french income tax simulation
#!/bin/bash -eu
simul() {
curl 'https://www3.impots.gouv.fr/simulateur/cgi-bin/calc-2020.cgi' \
-H 'User-Agent: agent/0.1' \
-d "$(paste -s -d '&' <<< "$@")" \
> simul.html
}
simul \
'pre_situation_famille=x
pre_situation_residence=x
0DA=xxxx
0DB=xxxx
0CF=x
1AJ=xxxxx
1BJ=xxxxx
1TT=xxxxx
7GA=xxxx'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment