Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Perplexity Exporter

Perplexity Exporter is a powerful JavaScript utility designed to help users download their entire Perplexity.ai chat history into a single, well-formatted Markdown file. It automates the process of navigating through your history, extracting conversations, and converting them into clean Markdown, including support for tables, code blocks, and citations.

Key Features

  • Full History Export: Automatically scrolls through your sidebar to find and export every thread.
  • Clean Markdown Conversion: Converts HTML responses into readable Markdown (headers, lists, tables, blockquotes, etc.).
  • Smart Citation Handling: Supports three styles for citations: footnotes, inline, or none.
  • Automated Navigation: Automatically clicks through each thread and waits for content to load.
  • Progress UI: Includes a real-time overlay showing export progress and a cancel button.
  • Local Backup: Keeps your research and AI interactions safe on your own machine.

How to Run It

Since this is a client-side script, you can run it directly in your browser:

  1. Open Perplexity: Navigate to perplexity.ai and ensure you are logged in.
  2. Open Developer Tools: Press F12 or Cmd + Option + I (Mac) / Ctrl + Shift + I (Windows/Linux) to open the browser's Developer Tools.
  3. Go to Console: Click on the Console tab.
  4. Paste & Run: Copy the entire content of perplexity_exporter.js, paste it into the console, and press Enter.
  5. Wait: The script will start scrolling your sidebar and then visit each thread. You will see a progress overlay in the top-right corner.
  6. Download: Once finished, a .md file will be automatically generated and downloaded to your computer.

Tip: You can also save this script as a Bookmarklet for even easier access in the future.

Configuration

You can edit the constants at the top of perplexity_exporter.js to customize the behavior:

  • CITATION_STYLE: Set to 'footnotes', 'inline', or 'none'.
  • THREAD_LOAD_WAIT: Increase this if you have a slow internet connection.

Why This Is Useful

Sharing this tool on GitHub can help a wide variety of people:

  1. Researchers & Writers: Perplexity is often used for deep research. Having a local Markdown copy allows for easy searching across all past research using tools like grep or desktop search.
  2. Personal Knowledge Management (PKM): Users of Obsidian, Notion, or Roam Research can easily import their AI conversations into their second brains.
  3. Data Portability: It gives users ownership of their data. Instead of relying on the platform to host history, users can maintain their own archives.
  4. Offline Access: Once exported, your entire history is available offline for reading and reference.
  5. Audit & Compliance: For professional use, it provides a way to document AI-assisted workflows and source citations.

Disclaimer

This script is a third-party tool and is not affiliated with Perplexity.ai. It is provided for personal use. Please ensure you comply with Perplexity's terms of service while using this tool.


Exported with ❤️ for the AI community.

About

Export your Perplexity History to a .MD file

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages