Skip to content

Instantly share code, notes, and snippets.

@bahrammp
Created August 6, 2018 15:12
Show Gist options
  • Save bahrammp/e9b221609ec53b8924230028d6c38a93 to your computer and use it in GitHub Desktop.
Save bahrammp/e9b221609ec53b8924230028d6c38a93 to your computer and use it in GitHub Desktop.
restaurant_vendor_name = list()
restaurant_urls = list()
f = open('restaurants_links.txt')
for line in f:
restaurant_urls.append(line)
f.close()
for i in restaurant_urls:
restaurant_vendor_name.append(i.split('/')[3])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment