Head to the Tools > Export > Export data menu, select a finacial reporting period or a custom date range, then in the "Data type" drop down list, select the General Ledger and hit the "Go" button. This will export a CSV file.