Skip to content

Instantly share code, notes, and snippets.

@sivabudh
Created January 31, 2016 11:11
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 sivabudh/442f8cd20158c19bc34f to your computer and use it in GitHub Desktop.
Save sivabudh/442f8cd20158c19bc34f to your computer and use it in GitHub Desktop.
Random coding to get movie titles for James...Lol
# Assuming that we are in the directory with movie files
movie_tiles = [movie_title.replace('The ', '') for movie_title in listdir()]
outfile = open('/Users/Pac/Desktop/movies.txt', 'w')
outfile.write('\n'.join(movie_titles)
outfile.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment