Firefox Webextension to convert web resources to mp3 files (including shazam tags)
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md Add an explanatory gif Oct 12, 2017
background.js
icon.svg
manifest.json
shazam.js
web2mp3.gif
web2mp3.json
web2mp3.py

README.md

Convert web pages to mp3 files

Disclaimer: this has been done for my own use, feel free to use it and submit changes, but I probably won't spend a lot of time maintaining it.

This is a tiny web extension which does two things:

  • It allows you to convert your shazam tags into mp3 files;
  • It allows you to download any Youtube page as an mp3 file.

Requirements

First, this extension requires some steps before working properly.

It requires that you install the python application locally, and that you install the youtube-dl package.

You will also need to add the native messaging app to the known ones.

On any linux machine, all of this can be accomplished with the following commands:

apt install youtube-dl python3
mkdir ~/.apps && mkdir ~/.mozilla/native-messaging-hosts/
wget https://raw.githubusercontent.com/almet/web2mp3/master/web2mp3.py -O ~/.apps/web2mp3.py
wget https://raw.githubusercontent.com/almet/web2mp3/master/web2mp3.json -O ~/.mozilla/native-messaging-hosts/web2mp3.json
chmod +x ~/.apps/web2mp3.py
chmod +x ~/.mozilla/native-messaging-hosts/web2mp3.json
sed -i "s:/home/alexis/.apps:`echo ~/.apps`:g" ~/.mozilla/native-messaging-hosts/web2mp3.json

Then, install the extension.

Of course, you can install in a different location, just think about updating your paths!

Then, head to any youtube page, or to your shazams and click on the icon next to the URL. Your shazam tags will be automatically downloaded and available in ~/web2mp3.

Enjoy ;)