Skip to content

Instantly share code, notes, and snippets.

@bararchy
Created October 7, 2017 14:49
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 bararchy/eaa51d36d7ca349d181d224f6c69ceff to your computer and use it in GitHub Desktop.
Save bararchy/eaa51d36d7ca349d181d224f6c69ceff to your computer and use it in GitHub Desktop.
Example for url iteration
# 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