Created
October 20, 2016 13:00
-
-
Save Maxghp/4de63b61e5b978ff1b9090b7f914a488 to your computer and use it in GitHub Desktop.
#double dict cycle for key => value (value have random elements)
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
#double dict cycle for key => value (value have random elements) | |
with open('items.json') as data_file: | |
links = json.load(data_file) | |
start_urls = [] | |
start_urls1 = [] | |
for link in links: | |
start_urls.append(link) | |
for urls in start_urls: | |
for url in urls['link']: | |
start_urls1.append("http://www.investopedia.com" + url) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment