Post Reply 
I wrote a MAL searching script in bash
Author Message
lembas
yuri princess

Posts: 4,365.2931
Threads: 184
Joined: 30th Apr 2008
Reputation: -2.56923
E-Pigs: 154.3525
Offline
Post: #1
I wrote a MAL searching script in bash
And it works pretty well, apart from a few annoyances.

I was looking for a quick way to view the synopsis and things of all the ranom anime I've downloaded that I don't remember what is, and going to the website itself is not quick. I couldn't find anything, so I whipped this up.

Basically, it searches MAL using the arguments it is given, and, if there is one result, displays some info about it, and if there are more than one, gives you a list, and prompts you to choose one.

It should work in Linux, OS X, and cygwin, provided you install xmlstarlet, which is the only requirment apart from things you should already have (curl, sed, grep, coreutils). (http://xmlstar.sourceforge.net/)

KNOWN DICKS BUGS:
Random HTML &whatever; seem to kill it. The XML parser is at fault here. I need to think of a better way to fix it, than completely removing anything matching &.*;

GET IT HERE AND STUFF: http://spoon.lembas.ws/mal.sh

I'm gay.
Spoiler for online game stuff:
[Image: 76561198003967361.png]
[Image: thelemmingbas.png]
3DS FC: 4184-1632-9353
Spoiler:
[Image: wQZsI.jpg]
Spoiler:
In the words of the wise trademark91:
windows Proud
(This post was last modified: 13/06/2012 06:08 PM by lembas.)
13/06/2012 04:09 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
I wrote a MAL searching script in bash - lembas - 13/06/2012 04:09 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)

 Quick Theme: