Skip to content

aldosch/perplexport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Perplexity Conversation Exporter

This tool automatically exports your Perplexity conversations as markdown files. Built with TypeScript and Puppeteer.

Setup

  1. Install dependencies:
npm install
  1. Create a .env file in the project root with your Perplexity credentials:
[email protected]
PERPLEXITY_PASSWORD=your_password
OUTPUT_DIR=./conversations

Usage

You can run the exporter in several ways:

  1. Development mode (with auto-reload):
npm run dev
  1. Direct execution:
npm start
  1. Build and run the compiled JavaScript:
npm run build
node dist/index.js

The script will:

  1. Log in to your Perplexity account
  2. Navigate to your conversation library
  3. Export each conversation as a markdown file
  4. Save the files in the specified output directory (defaults to ./conversations)

Output Format

Each conversation is saved as a markdown file with:

  • The conversation title as the main heading
  • Each message marked as either "User" or "Assistant"
  • Messages separated by horizontal rules

Notes

  • The script includes a 1-second delay between processing conversations to be respectful to the server
  • Files are named using the conversation title (sanitized for filesystem compatibility)
  • The script runs Chrome in headless mode
  • Built with TypeScript for better type safety and developer experience

About

Script to bulk export Perplexity.ai conversations into Markdown files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 92.8%
  • Shell 4.0%
  • JavaScript 3.2%