Use shell-fm for fun* and profit*

*where fun is great utility
*where profit is a rich storehouse of otherwise unsaveable audio tracks

I was supposed to post this about 8 months ago. Anyway, being that Last.fm was recently accused of handed over a load of non-anonymized data to the RIAA, I thought it would be fitting to post this info on basically abusing leveraging Last.fm through a combination of the shell-fm client and a program called tee. This is essentially me linking to someone else's information, but I put it in a few useful contexts. Click through to read the full post.

You should read this if any of the following apply:

  • you appreciate free music, especially via some cool linux hacks
  • you want to passively generate a potentially massive music library in mp3 format
  • to not only listen to, but also simultaneously download great potential mixtape songs that you've never heard before
  • somewhat random, yet full access to the entire secure last.fm catalogue of mp3s
  • to become part of a tiny minority of power users leveraging a great service for a novel purpose

Many of us listen to enormous quantities of music these days. Those of us who are smart and cautious tend to back this music up on external hard drives. Sometimes, multiple redundant hard drives. Some of us are smart, but not cautious. We have plenty of music, but it isn't stored with the worst case scenario in mind. My hard drives crashed in September, right after I moved 500 miles away from home, to live in Columbus, Ohio. Shortly thereafter, I found a hack here that allowed me to re-generate my music library using my last.fm profile data and the last.fm service. No hard work necessary. Listen to music; the collection builds itself.

About a year ago, I wrote about shell-fm, a lightweight Last.FM client for Linux. It's still pretty much the best thing going when it comes to console-based Last.FM clients. Being that it's just a little console app, it's a lot less bloated than the official last.fm app. And personally, I think it's better looking.

The command follows. There's a far more sophisticated version of this available at the external link now, that actually tags the file as it downloads. I suggest you go and get that one.
extern = tee "/home/noah/sapphires/%a - %t.mp3" | aoss madplay -Q -
With this, I generated a gigabyte of music over 3 days of casual listening. Over 300 songs, with many of them among my favorite songs. How else would I get this so easily?

Why would you want this?
  • You can regenerate a music library from music you've already scrobbled, but might not have access to.
  • You're like me in that when someone asks you to make them a mixtape, you never know what to put on it because your musical taste is so broad. Your Last.fm profile is pretty well fleshed out, so just run shell-fm with this script for as long as you want the mixtape to be, on the library station for your username, and then burn the mp3s to disc.
  • See above for more reasons.

Where this doesn't work: with filenames that have special characters. Artists who have filenames like GZA/Genius won't get written to disk because it confuses tee. tee interprets this as a directory instead of a filename because of the slash. Here's an example of a bad songname: Heard Iron Bug, "They're Coming To Town". The quotes in the song name also confuse tee. This may be corrected in the newer version discussed briefly above and linked to throughout this post, but I haven't finished testing it out yet.

Lastly, in light of the Last.fm user data scare, I feel I should mention Libre.fm, an open alternative to Last.fm. It's in the alpha stage of testing and will even import your user data via this scraping utility.

61 comments:

Unknown said...

My understanding is that Last.fm handed over data to its parent company upon request, and was only told it was for the RIAA after the information had changed hands.

Anonymous said...

You can import your data from last.fm to libre.fm using a python script they have. Here's the page on their wiki: http://ideas.libre.fm/index.php/Using_lastscrape

Noah said...

Thanks anonymous, updating post.

Anonymous said...

That rumor was a lie. They never handed data over to the RIAA.

http://blog.last.fm/2009/02/23/techcrunch-are-full-of-shit

Anonymous said...

(I'm a developer at Last.fm)

The data-scare rumour is bollocks. Last.fm denied it (twice), CBS denied it, even the RIAA denied it. TC based their story on an anonymous source, who since publication has cut all contact and disappeared.

Don't believe everything you read on the internet. I wouldn't say it's a fair reason to "abuse" Last.fm, that said shell-fm is pretty neat.

Noah said...

Yeah, I guess abuse was something of a strong word and not necessarily what I intended. When I found this hack, my intent was to use it to get me out of the fairly common situation I described above, that i found myself in last September.

If you happen to check back, I have a question: how does last.fm get these files in the first place? I imagine a significant portion are from licensing agreements. I am aware that it collects meta data about a track but does it ever collect actual tracks from users?

Tax Accountants Victoria BC said...

Very nicely done and I truly enjoy it.

Tax Accountants Victoria BC

Unknown said...

Great post! I appreciate you for the effort you take to share your knowledge with people. I can find many things that are still unaware. Thanks for you time and knowledge. Great!!!headphones melbourne.

Unknown said...

Thanks so much for the information. I appreciate it a lotfurniture repairs melbourne.

Unknown said...

I reread some of your blogs because I love the infos posted.
You are amazing Garden design.

Unknown said...

Among the best sites I have come across in a while.weeding.

Unknown said...

The information that you give thru blogging is very useful. keep it up!bricklaying melbourne.

Unknown said...

This article has given a very good amount of information on this amazing topic. The writer has done a good amount of research on this topic and has written it very well.Pet sitting.

Unknown said...

This article has given a very good amount of information on this amazing topic. The writer has done a good amount of research on this topic and has written it very well.Roof cleaning.

Unknown said...

Good post Thanks for sharing with us. I just loved your way of presentation. I enjoyed reading this Paving.

Unknown said...

I am continually hunting on the web down articles that can help me. There is clearly a great deal to think about this. I think you made some great focuses in Features too. Continue working, extraordinary job
car wash

Unknown said...

Very good article, I enjoyed reading your post, very good part, I want to tweet this to my followers. Thank you
retaining walls

Unknown said...

Great post and nice blog shared here.Its an beautiful Content. Great article and thanks for sharing this post. Share some content on
masseuss

Unknown said...

This is really a nice and informative, containing all the information and also has a big impact on the new technology. Thanks for sharing. Drywall contractor near me

Unknown said...

I just couldn't leave your website before telling you that I truly enjoyed the top quality info you present to your visitors? Will be back again frequently to check up on new posts.
Santa Rosa Landscaping

Unknown said...

I am continually hunting on the web down articles that can help me. There is clearly a great deal to think about this. I think you made some great focuses in Features too. Continue working, extraordinary job
Santa Rosa Cleaning service

Unknown said...


Very good written article. It will be supportive to anyone who utilizes it, including me. Keep doing what you are doing – can’r wait to read more postscustom swag

Unknown said...

I just thought it may be an idea to post incase anyone else was having problems researching but I am a little unsure if I am allowed to put names and addresses on hereacupressure

Unknown said...

I just couldn't leave your website before telling you that I truly enjoyed the top quality info you present to your visitors? Will be back again frequently to check up on new posts.
vocalics

Unknown said...

I just thought it may be an idea to post incase anyone else was having problems researching but I am a little unsure if I am allowed to put names and addresses on hereautogate

Unknown said...

This is really a nice and informative, containing all the information and also has a big impact on the new technology. Thanks for sharing. brick fence

Unknown said...

I just couldn't leave your website before telling you that I truly enjoyed the top quality info you present to your visitors? Will be back again frequently to check up on new posts.
concrete companies brisbane

Unknown said...

I am continually hunting on the web down articles that can help me. There is clearly a great deal to think about this. I think you made some great focuses in Features too. Continue working, extraordinary job
Tiling company Canberra

Unknown said...

Very good article, I enjoyed reading your post, very good part, I want to tweet this to my followers. Thank you
car detailing frankston

Unknown said...

Great post and nice blog shared here.Its an beautiful Content. Great article and thanks for sharing this post. Share some content on
playground rubber flooring

Unknown said...

I just couldn't leave your website before telling you that I truly enjoyed the top quality info you present to your visitors? Will be back again frequently to check up on new posts.
Commercial painting

Unknown said...


So glad I got my phone working again. Couldnt have done it without this article. Thanks!
Shared with my fellow friends at
Carpet cleaners

Unknown said...

I can set up my new idea from this post. It gives in depth information. Thanks for this valuable information for all,Bond Cleaning Geelong

Back in balance massage said...

Great content!
https://backinbalancemassage.ca/

Unknown said...

I am continually hunting on the web down articles that can help me. There is clearly a great deal to think about this. I think you made some great focuses in Features too. Continue working, extraordinary job
painting company

Unknown said...

Great post and nice blog shared here.Its an beautiful Content. Great article and thanks for sharing this post. Share some content on
interior painting

Unknown said...

Superb post thank you

local emergency glazier

Unknown said...

Great post! I appreciate you for the effort you take to share your knowledge with people. I can find many things that are still unaware. Thanks for you time and knowledge. Great
San Rafael concrete pumping
Power washing services
patio builder

Unknown said...

Thank you because you have been willing to share information with usgenie garage door opener
cheapest car hire

Unknown said...

Kitchen Renovations Parramatta

It was very useful to me. This is truly a great read for me. I have bookmarked it and I am looking forward to reading new articles. Keep up the good work.
exterior painter

I have read a few of the articles on your website now, and I really like your style of blogging. I added it to my favorites site list and will be checking back soon. Please check out my site as well and let me know what you think
commercial solar batteries
small business marketing
Houses for Rent in Penrith

Unknown said...

House Cleaning Service
gutter replacement
move out cleaningIt was very useful to me. This is truly a great read for me. I have bookmarked it and I am looking forward to reading new articles. Keep up the good work.

Unknown said...

house painter
deep cleaningI have read a few of the articles on your website now, and I really like your style of blogging. I added it to my favorites site list and will be checking back soon. Please check out my site as well and let me know what you think

Hanna Grey said...

Great substitute for last FM thank you for sharing this. If you are looking for drywall contractors visit us

Unknown said...

I am a novice in writing. I believe this will help me to write improved. I depiction these blog articles are superior to other blogs.
garage door installers Santa Rosa

Unknown said...

I have read a few of the articles on your website now, and I really like your style of blogging. I added it to my favorites site list and will be checking back soon. Please check out my site as well and let me know what you think
chapter 11 bankruptcy
free quote

Renovations Sherwood Park said...

Very nice! Informative indeed.

Renovations Sherwood Park

Kenny said...

Superbly written article, if only all bloggers offered the same content as you, the internet would be a far better place. seohouse

Unknown said...

Thanks for the good writeup. It actually was a
enjoyment account it. Look advanced to more brought
agreeable from you!
top consulting companies
commercial cleaning service
painting
home painter near me
tattoo studio eyeliner
skin tightening laser
fibroblast treatment
skin tightening laser

Unknown said...

personal trainer at home
pruning
tree company

Thank you so much for the post you do. I like your post and all you share with us is up to date and quite informative, i would like to bookmark the page so i can come here again to read you, as you have done a wonderful job

Tree Removal Services Red Deer said...

Please continue to inspire your readers. Good work!

Tree Removal Services Red Deer

Deborah Roughton said...

As a fresher, you have many new hopes and wishes and are super excited to enjoy your newfound independence. But unfortunately, you tend to stall your assignments and prioritise everything but your studies. As a result, you need to get dissertation assistance writing, assignment help, or other academic services from experts.
You are not alone in hiring professionals for dissertation assistance due to the lack of knowledge and time. But certainly, you can change the scenario from early on. Here's something to help you get started:
1.Do It ASAP
Assignments are common, and they will only pile up if you don't do them on time. So be punctual from the first week of the semester to avoid last-minute stress. An early start will give you the upper hand with tasks and avert stress.
2.Stick to a Plan
A study plan is crucial to maintaining a work-life balance. Hence, develop a habit of planning your work before starting with your day's work. While planning, allocate enough time for writing, studying, test preparation, etc. Make sure to steer clear of distractions to stay focused.
3.Avoid Overthinking
Don't get carried away by your thoughts. You only make things difficult for you when you set unrealistic goals. Instead, target to study and do things permissible by your time. Always try to keep up with your day-to-day task, so you don't have to worry about lagging.
4.Be Smart
Today, online academic tools are developed to simplify your assignment writing experience. Use top-rated tools such as essay rewriter, plagiarism checker, paper editor, citation generators, and so on for assignments, case studies, or Marketing Dissertation Topics and editing help.
5.Seek Support
It's completely okay to get help when you drown in your syllabus. But the secret is to get help early on. Whether it’s your assignments or final-year dissertation, english assignment writer are just a ping away to help you with your unfinished papers. Just free yourself from unnecessary stress and harmful thoughts to study and perform better.
Academics are demanding, and delaying your assignments will only make things difficult. Therefore, practice these tips to get through the pressure.

yousuf said...

This web page is really a walk-through its the knowledge you wanted concerning this and didn’t know who to ask. Glimpse here, and you’ll certainly discover it. 5g999

ireland assignment help said...

Amazing post! I loved what you shared about tarot. If you want to get instant love reading, ireland assignment help reviews

AUTOBETCASINO said...

AUTOBETCASINO เล่น บาคาร่า อย่างไรให้ได้เงิน เคยไหม กับการเล่น บาคาร่า เพื่อต้องการเงินและกำไรจากการเดิมพัน แน่นอนว่า ทุกคนจะต้องอยากได้... ที่ autobetcasino

Rudra Samrat said...

heyy! everyone, We are an online Rudraksha store named as Rudra samrat. basically, It recognized that rudraksha is a very holy and important part of Indian culture. and closed to lord shiv and lord vishnu, rudraksha is very powerful and protective. It is believed that rudraksha can provide protection from evil eyes and negative energies.
visit to buy : Online Rudraksha Store

panch mukhi rudraksha
sapta mukhi rudraksha
Online Rudraksha Store
gayatri yantra
14 mukhi rudraksha

ITSIPL - I.T. solution India said...

hello everyone, ITSIPL is a company of IT Services, Storage, Security and SonicWall Reseller based in India. SonicWall Reseller is your gateway to all things SonicWall. Our IT and Security services team has been specializing in the field for years and is able to help you deploy a secure network and maximized productivity with the best software connected to it. We offer end-to-end solutions that are tailored to meet your business needs, whether you need storage, networking or managed security - we have you covered. From custom application development to outsourced security implementations, we can help increase your bottom line by implementing solutions for increased IT uptime and growth.
Please visit : A Total IT Solutions Company

reseller of Forcepoint in delhi
Forcepoint reseller
sonicwall reseller in delhi

Anonymous said...

Thanks for sharing your amazing thoughts. It's a well-explained and informative blog. Click here for more details. cipd assignment help uk

Leyes Violencia Doméstica Nueva Jersey said...

Your post on using shell-fm for fun and profit is a delightful read! It's amazing how technology can be both practical and enjoyable. Thanks for sharing this creative approach, and here's to having fun while making life a bit easier!

Leyes Violencia Doméstica Nueva Jersey
New Jersey Domestic Violence Laws

Robert Gandell said...

Native Assignment Help emerges as the beacon of support for students in the United Kingdom. As a leading provider in the field, we take pride in our expertise in delivering specialized CIPD Assignment Help UK. Our dedicated team of experienced professionals ensures that students pursuing courses in human resource management receive the tailored assistance they need to excel in their studies. At Native Assignment Help, we understand the importance of quality research, flawless writing, and on-time submissions. Our assignment help online in UK are designed to meet these essential criteria, ensuring that you have access to the best resources and guidance to boost your academic performance. When it comes to CIPD Assignment Help in the UK, our commitment to excellence sets us apart as the premier choice for students seeking top-notch assistance with their assignments.

Marry Smith said...
This comment has been removed by the author.
Marry Smith said...

Exploring the innovative use of shell-fm and tee for music aficionados is fascinating. The combination offers a unique approach to building an extensive mp3 library based on Last.fm data. It's a clever solution for music enthusiasts, and perhaps even students seeking a break from their studies or some English assignment help online.

Post a Comment