Created
November 5, 2013 20:32
-
-
Save eloyz/7325731 to your computer and use it in GitHub Desktop.
Make a CSV file with 100 random locations
This file contains 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
""" | |
pip install fake-factory | |
""" | |
from faker import Faker | |
fake = Faker() | |
with open('location.csv', 'wb') as f: | |
for i in range(100): | |
f.write(','.join([fake.name(), fake.street_address(), fake.city(), fake.state(), fake.postcode(), fake.country()]) + '\n') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment