Skip to content

Instantly share code, notes, and snippets.

@eloyz
Created November 5, 2013 20:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eloyz/7325731 to your computer and use it in GitHub Desktop.
Save eloyz/7325731 to your computer and use it in GitHub Desktop.
Make a CSV file with 100 random locations
"""
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