Awesome
<!-- omit in toc -->audible wishlist scraper
Fetches your wishlist and outputs it as: html, markdown, plaintext, json, csv. There's now download buttons for all formats in the output.
Just as a good to know thing: to prevent audible from redirecting users that are not logged in to other sites, all links are suffixed with url params
ipRedirectOverride=true
andoverrideBaseCountry=true
.
A word of warning
Use at your own risk. I have good intentions, but you shouldn't go copy pasting scripts into your browser's console all willy nilly. Just as a heads up, Firefox will give you this warning message when you try to paste things into the console. You should probably heed the warning:
Firefox warning message in the console → Scam Warning: Take care when pasting things you don’t understand. This could allow attackers to steal your identity or take control of your computer. Please type ‘allow pasting’ below (no need to press enter) to allow pasting.
Usage
You don't need to know how to code or read any code to use this script. It would be preferrable, as stated above, but the only thing you need to know is how to copy & paste.
- Copy the script
(Ctrl+C)
into your clipboard from here: audible wishlist scraper.js - Go to your Audible wishlist page.
- Sort and filter the wishlist before runnign the script... if needed.
- Open your browser's developer tools console. The easy way is to right click anywhere on a website, choose
Inspect element
from the context menu and then click theConsole
tab. - Paste the script
(Ctrl+V)
into the console and press enter to run it.- Depending on the size of your wishlist, it may take a hot minute for it to be done, and when it is it will give you 4 textboxes with the different outputs.
If you need to get back to the wishlist page, refresh the page.
Format info
Markdown
There's a variable called slimMarkdown
at the very top of the script. Change this to var slimMarkdown = true;
and you'll get the title wrapped in a link to the Audible store page and rating below that. If you want anything slimmer, you're going to have to edit the script. There should be only 2 occurences of slimMarkdown
so it should be easy to find where to edit it.
You can use online Markdown editors to preview or convert it to another format. At the very least you should be able copy the text from the preview and paste it to your email client and retain the styling.
Online Markdown editors:
Desktop and some mobile markdown applications may have similar or more extensive export options
HTML
When you download the HTML
it gets a basic html wrapper around making it so you could just upload it as is to a website and share the link. For other use cases, you'll probably want to copy it from the textarea.
There are also 3rd party services where you can put the HTML
and share a link:
- codepen - Requires an account and I also couldn't save my large wishlist unfortunately
- jsfiddle
- Github pages - A pretty good way to host a simple site. It's not hard to upload your website or single html file in this case, but it is quite the long process, and may be hard to understand if you're not familiar with how github works.
Here's my wishlist in jsfiddle.
Plain Text
This is forcefully slimmed down to just the title → link to audible
because plain text is very plain...
JSON
This is the advanced format of the bunch, which all of the outputs as the base. Downloaded file is indented (poorly) and the JSON in the textarea is in single line.
CSV
The CSV format is pretty typical, but it does use a couple formulas that I have only tested to be working in Google Sheets.
Here's my whole wishlist in goole sheets.
I have edited it a little after import:
- I converted all cells to text to get rid of some wonky weird text alignment (a little more about that below under "how to import csv to Google Sheets")
- Click on the top left corner to select all cells
- Choose text formatting from the
Format
menu (It's somewhere in there)
- Made all rows taller to make the cover image bigger
- Click on the top left corner to select all cells
- Drag one of the rows to be taller (the image fits itself in the available space)
- General width adjustment of each col
- Clipped the text contents of cols
J
andK
- Click on both cols...
- And choose Clip from the
Format
menu (It's somewhere in there)
- I edited the header row
- Made the text bold
- Changed text color
- Changed background color
- and lastly I froze the header row from the
View
menu
- How to import csv to Google Sheets
- You'll likely want to use the import option: Replace spreadsheet
- And you will want it to convert numbers, dates and formulas to make sure formulas work right.
- This does align some numbers and dates differently, but you should be able to fix that by converting all cells to text afterwards.
- That said, spreadsheet applications converting what was originally text into numbers is notorious for dropping out changing the formatting in a way that you probably don't want. I didn't see anything weird happening in this case.
Output Example
Here's the HTML output of my wishlist: in jsfiddle.
I had trouble putting this anywhere because my wishlist is kinda large. I'm a terrible wishlist user. I pretty much put in anything that is vaguely intersting (or not even), like if the cover looks cool or something... In the wishlist you go!