Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Khalil Al-Rashid](https://secure.gravatar.com/avatar/9856eecb3934e1e376c491f0ffdd6a03?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Khalil Al-Rashid
Courses Plus Student 933 PointsDownloading This Database?
Is it possible to download this database which is available in this course? and how?
3 Answers
![Steven Parker](https://uploads.teamtreehouse.com/production/profile-photos/969492/micro_tool_chess_set_2.jpg)
Steven Parker
230,688 PointsSo you think it would be fun playing with a list of 13,076 actors (there's not much else in there)?
OK, then, here's the trick. Use your browser and save the playground page (as HTML code). Inside the code, there's a <script> section where the variable window.APP_DATA is being assigned to a JSON object with (among other things) the SQL statements to create the tables and populate them with the data. This element is named initializerSql. Now you know why it takes a good while for the playground page to load!
You'll need to do a little editing to prepare the SQL, such as:
- removing all the HTML outside the <script> section
- removing the extra JSON elements
- converting sequences of "\n" into real line endings
- converting escaped quotes (\") into plain quotes (")
- converting accents (`) into single quotes (') - unless your DB likes them
Once you've done all that, you can run the SQL into your favorite DB engine to create your duplicate database.
Enjoy!
![Nicolas Hampton](https://uploads.teamtreehouse.com/production/profile-photos/2932942/micro_Screen_Shot_2019-02-01_at_3.19.46_PM.jpg)
Nicolas Hampton
44,638 PointsI don't believe so Khalil, but from what I can tell there's not really much of an advantage to doing so.
![Iain Simmons](https://secure.gravatar.com/avatar/89ea1833e0ffaf51eb0ef0cf15fa3203?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Iain Simmons
Treehouse Moderator 32,305 PointsOr copy and paste in a spreadsheet application and export as CSV? Then the trick is getting all the right types on import into the database application of your choice.