Last active
December 17, 2015 10:09
-
-
Save milimetric/5592871 to your computer and use it in GitHub Desktop.
quick and dirty script to test parallelism on umapi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# fill in u and p to the proper usernames and passwords | |
username=u | |
password=p | |
htuser=u | |
htpass=p | |
curl --data "username=$username&password=$password" https://$htuser:$htpass@metrics.wikimedia.org/login -c ~/umapi.session | |
for cohort in test e2_aft5_cta4 e3_ob2b_gettingstarted_page-impression e3_ob4b_gettingstarted-addlinks_page-impression e3_ob4b_gettingstarted-clarify_page-impression e3_ob4b_gettingstarted-copyedit_page-impression | |
do | |
for metric in threshold namespace_edits revert_rate bytes_added | |
do | |
curl https://$htuser:$htpass@metrics.wikimedia.org/cohorts/$cohort/$metric -b ~/umapi.session | |
done | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment