Created
October 17, 2016 13:24
-
-
Save Maxghp/abae5d47aa91e68898f88359362f1cfd to your computer and use it in GitHub Desktop.
Python
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
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