![]() |
Faster access to a website
Hey all.
I found a really terrific music site. http://mp3juices.com/ It runs really slow and chunky except for when downloading on my tablet. I was wondering if perhaps there was a way to just have a terminal front end to this site. Kind of like the bash script that was written for GoEar: Code:
#!/bin/bash Thanks! |
Re: Faster access to a website
Quote:
Just have to split the downloaded HTML into patterns and extract the data you need. You could get some books on learning BASH, sed and awk and do it yourself or hope someone else will be interested in using the site and write the script for your. ;) There are a couple things you can do to make websites faster on the tablet. 1) Turn off Javascript before opening the page. Some sites might not work properly when disabled, just turn it back on when using them. 2) Turn off images before opening the page. Sadly, that site does not support blind users (no alt tags on the download and listen buttons). This means you need images enabled in order to click the download button. If you know any Javascript you could try writing a bookmarklet that finds all of the download images and adds an alt tag. This is untested but might work, don't add any spaces. Code:
javascript:allimgs=getElementsByTagName('img');for(i=0;i<allimgs.length;i++)if(/download_button/.test(allimgs[i].src))allimgs[i].alt='download'; Code:
127.0.0.1 pixel.quantserve.com |
Re: Faster access to a website
Okay.
I'm going to attempt all of your suggestions right now. :) Thanks! And yeah, I think this is one of the best sites I have ever found online. The only problem, well, not really, is that it appends the song title with the site's name for each download. What's the command line to mass delete "- [MP3JUICES.COM]" from every file in a folder? |
Re: Faster access to a website
Oh, I just thought of something....
I think I'll try Qwerty's simple bash Web Browser. I forget what it's called but it's actually pretty nifty. |
Re: Faster access to a website
Quote:
|
Re: Faster access to a website
1 Attachment(s)
A friend of mine wrote this script and here's what he had to say.
Quote:
I've tried it but I keep running into the following error: -bash: /usr/bin/juicer: /bin/osso-xterm^M: bad interpreter: No such file or directory Any suggestions? I current have bash installed. |
Re: Faster access to a website
Quote:
Other than that, it seems to have DOS/Windows line endings, you should convert it to Unix somehow. Quote:
|
Re: Faster access to a website
Yeah, this is the script I'm trying to run.
I only mentioned goear with you earlier because I once had that working. I did download the file to my Windows XP computer so I could upload it here though. But the one I have on my tablet, I downloaded directly to that, no Windows. |
Re: Faster access to a website
How does osso-xterm enter the picture then? Can you try "bash -x /usr/bin/juicer" and also "sh -x /usr/bin/juicer" and post the output here?
|
Re: Faster access to a website
Whoops. I changed bash to osso-xterm hoping that would fix it.
Okay, I changed it back. juicer guster -bash: /usr/bin/juicer: /bin/bash^M: bad interpreter: No such file or directory bash -x /usr/bin/juicer guster + $'\r' : command not foundne 2: + $'\r' : command not foundne 3: /usr/bin/juicer: line 27: syntax error: unexpected end of file sh -x /usr/bin/juicer + : not foundicer: line 2: + : not foundicer: line 3: /usr/bin/juicer: line 27: syntax error: end of file unexpected (expecting "then") |
Re: Faster access to a website
Yeah, your script is not in unix format. You need to remove the carriage returns at the end of every line.
|
Re: Faster access to a website
Okay. Will do. Thank you! :)
|
Re: Faster access to a website
I went ahead and deleted lines 2 and 3.
bash -x /usr/bin/juicer /usr/bin/juicer: line 25: syntax error: unexpected end of file sh -x /usr/bin/juicer /usr/bin/juicer: line 25: syntax error: end of file unexpected (expecting "then") juicer guster : bad interpreter: No such file or directory I now am using bash4. I still have a /bin/bash file so I don't understand what I'm missing here. |
Re: Faster access to a website
You are barking up the wrong tree. Your bash is fine, and even the busybox shell will do. The problem is that your script is corrupted, and you need to fix it to have unix line endings. On every line, not just the top.
|
Re: Faster access to a website
You were right lma.
fromdos -d /media/mmc1/juicer :) I hope more good things will come from this script, but it's a super great start for such an early release. Now, how to stop it from downloading every Guster song in existence? *lol* |
Re: Faster access to a website
1 Attachment(s)
Here's the file again, only working this time. :)
Attachment 27424 Remove the .txt extension and make it executable. Would anyone here like to pretty this up a bit? The songs need to have .mp3 added to them. killall wget should stop it's massive downloading. But mostly, like that goear script, show what's available and be able to choose a song rather than having juicer download every single search result. Oh, and maybe have it download to a specific folder as well. If you ever want to find a song, this will not only get it for you, but will also get the best recording of it. Usually at 320 kbps. This script is version 0.1. Someone please release a 0.2 of it. :) |
All times are GMT. The time now is 17:55. |
vBulletin® Version 3.8.8