Skip to content

Instantly share code, notes, and snippets.

@chris124567
Created May 16, 2020 18:46
Show Gist options
  • Save chris124567/21a5151251dd029745c042bebaa430e8 to your computer and use it in GitHub Desktop.
Save chris124567/21a5151251dd029745c042bebaa430e8 to your computer and use it in GitHub Desktop.
Download today's Wall Street Journal by manipulating the parameters in the URL for the free last week's copy
#!/bin/sh
DATE=$(date +%Y%m%d)
DIR="${HOME}/Documents/WSJ"
curl -L 'http://ereader.wsj.net/eebrowser/ipad/html5.check.2350/action/php-script/down_full.php' -H 'Connection: keep-alive' -H 'Pragma: no-cache' -H 'Cache-Control: no-cache' -H 'Origin: http://ereader.wsj.net' -H 'Upgrade-Insecure-Requests: 1' -H 'DNT: 1' -H 'Content-Type: application/x-www-form-urlencoded' --data "rules=&pSetup=wallstreetjournal&archiveName=The+Wall+Street+Journal_${DATE}&language=0&edition=The+Wall+Street+Journal&file=0%40%2Fwallstreetjournal%2F${DATE}%2Fpage.pdf" --compressed -o ${DIR}/${DATE}.pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment