Created
October 7, 2017 14:49
-
-
Save bararchy/eaa51d36d7ca349d181d224f6c69ceff to your computer and use it in GitHub Desktop.
Example for url iteration
This file contains hidden or 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
# First step, get an array of URLs | |
my_url = ["http://foo.com?bar=1&har=2&lar=3"] | |
# 2nd step, for each url parameter, create a new url with additional data in each parameter (single "A") | |
my_new_url = ["http://foo.com?bar=1A&har=2&lar=3", "http://foo.com?bar=1&har=2A&lar=3", "http://foo.com?bar=1&har=2&lar=3A"] | |
# last step, repeat step one and two to achive adiitional changes (Additional "A") | |
my_new_new_url = ["http://foo.com?bar=1AA&har=2&lar=3", "http://foo.com?bar=1&har=2AA&lar=3", "http://foo.com?bar=1&har=2&lar=3AA"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment