Skip to content

Instantly share code, notes, and snippets.

@Maxghp
Created October 17, 2016 13:24
Show Gist options
  • Save Maxghp/abae5d47aa91e68898f88359362f1cfd to your computer and use it in GitHub Desktop.
Save Maxghp/abae5d47aa91e68898f88359362f1cfd to your computer and use it in GitHub Desktop.
Python
alphabeticals = [
['A', 13], ['B', 9], ['C', 20], ['D', 13], ['E', 10], ['F', 8], ['G', 6], ['H', 7], ['I', 11], ['J', 3],
['K', 2], ['L', 6], ['M', 13], ['N', 7], ['O', 6], ['P', 13], ['Q', 3], ['R', 9], ['S', 20], ['T', 8],
['U', 4], ['V', 8], ['W', 8], ['X', 2], ['Y', 1], ['Z', 1], ['0', 3]
]
start_urls = []
for alphabetical in alphabeticals:
i = 1
while i <= alphabetical[1]:
start_urls.append(
"http://whatis.techtarget.com/definitions/" + str(alphabetical[0]) + "/" + "page/" + str(i),
)
i += 1
print start_urls
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment