Guest User

Quantiacs data download

a guest
Nov 26th, 2015
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.27 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. INDEX=$(wget -q -O - 'https://quantiacs.com/For-Quants/Tutorials/Markets.aspx')
  4. LABEL=$(echo "$INDEX" | grep -Eo "&labelname=\w+" | sed 's|&labelname=||g')
  5.  
  6. for ASSET in $LABEL
  7. do
  8.     wget -O "$ASSET.txt" "https://www.quantiacs.com/data/$ASSET.txt"
  9. done
Add Comment
Please, Sign In to add comment