Skip to content

Instantly share code, notes, and snippets.

@kwellman
Created May 5, 2012 21:14
Show Gist options
  • Save kwellman/2605622 to your computer and use it in GitHub Desktop.
Save kwellman/2605622 to your computer and use it in GitHub Desktop.
Mining twitter blog post (init_queries.py)
def init_queries():
phrases = [
'wish there was',
'why isn\'t there',
'wish someone would create',
'somebody needs to create',
'somebody should create',
'someone needs to create',
'someone should create',
]
# add type of product (eg. app, site, or website) to end of phrases
return ['%s %s' % (p, suffix) for p in phrases for suffix in ['app', 'site', 'website']]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment