Skip to content

Instantly share code, notes, and snippets.

@kevinburke
Created February 5, 2014 22:03
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 kevinburke/8834159 to your computer and use it in GitHub Desktop.
Save kevinburke/8834159 to your computer and use it in GitHub Desktop.
import random
from twilio.rest import TwilioRestClient
client = TwilioRestClient()
hyphy_songs = [
'The Pack - Got My Vans On',
'Mistah Fab - Super Sicc Wit It',
'Mistah Fab - The Slap',
'Mistah Fab - Marshawn Lynch',
'Mistah Fab - Ghost Ride It',
'Traxamillion - Sideshow',
'Nump - I Got Grapes',
'The Federation - I Wear My Stunna Glasses At Nite',
'Hoodstars - I Wear My Stunna Glasses At Nite',
'E-40 - Gouda',
'E-40 - Tell Me When To Go',
'E-40 - U and Dat',
'Too $hort - Blow the Whistle',
'Keak Da Sneak - That\'s My Word',
'Keak Da Sneak - Fast Like A Nascar',
'Mac Dre - Get Stupid',
'Mac Dre - Feelin Myself',
'Mac Dre - Thizzle Dance',
]
area_codes = [925, 408, 415, 510, 707, 650,]
for _ in xrange(30):
area_code = random.choice(area_codes)
number = client.phone_numbers.purchase(area_code=area_code)
print "purchased number " + number.phone_number
#numbers = client.phone_numbers.list(phone_number="+1**********")
#for song in hyphy_songs:
#number = random.choice(numbers)
#print "sending song " + song + " from number " + number.phone_number
#message = client.messages.create(to="+14156305833", from_=number.phone_number,
#body=song)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment