Created
August 5, 2015 16:32
-
-
Save mrahul17/591a52d273175e2e5f06 to your computer and use it in GitHub Desktop.
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
| with open('instiDatacsv.csv','r') as f: | |
| myReader = csv.reader(f) | |
| for row in myReader: | |
| name = row[1] | |
| website = row[5] | |
| domain = row[4] | |
| insti = Institute(name = name, website = website) | |
| insti.save() | |
| InstituteDomain(instituteId = insti, domain = domain).save() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment