Skip to content

Instantly share code, notes, and snippets.

View nickbaldwin-monster's full-sized avatar

Nick Baldwin nickbaldwin-monster

View GitHub Profile
@usayamadx
usayamadx / ExportKindle.js
Last active June 30, 2024 21:48 — forked from jkubecki/ExportKindle.js
Amazon Kindle Export
// init
let xhr = new XMLHttpRequest()
let domain = 'https://read.amazon.com/'
let items = []
let csvData = ""
// function
function getItemsList(paginationToken = null) {
let url = domain + 'kindle-library/search?query=&libraryType=BOOKS' + ( paginationToken ? '&paginationToken=' + paginationToken : '' ) + '&sortType=recency&querySize=50'
xhr.open('GET', url, false)