Showing posts with label wget. Show all posts
Showing posts with label wget. Show all posts

Thursday, January 31, 2008

libTorrent / rTorrent 0.7.0 debian packages available

UPDATE: Never version of rTorrent made into Debian (Sid) since this entry was first posted.

Rakshasa’s libTorrent and rTorrent Unstable Release (0.7.0) Debian packages are now available

The Debian Sid/unstable rtorrent package is still stable release (0.6.4.x). A wishlist was posted and you can use this repo until the main debian packages are upgraded.

You can add this line to your sources.list and apt-get the packages.
deb http://repos.ghostbar.ath.cx/debian sid main

Or grab the packages directly from http://debian.ghostbar.ath.cx/

The adding of public keys for this repo however didn’t work. Perhaps am missing something here.

gpg --keyserver pgp.mit.edu --recv 0xCACAB118 && gpg --export 0xCACAB118 | sudo apt-key add -

[OR]

wget http://pub.ghostbar.ath.cx/pubkey-ghostbar.gpg sudo apt-key add pubkey-ghostbar.gpg

Download High Quality Movie Trailers

XML parsing is often left to programming languages, not for command line use or in shell scripts. Here I used XMLStarlet Command Line XML Toolkit a wonderful set of tools that brings power of handling XML to commandline and Wget to download the content. The xmlstarlet tool seeks the URL’s in XML feed and passes it to wget.

/usr/bin/wget -c  `/usr/bin/xmlstarlet sel  --net  -D -T -t  -m "/records/movieinfo/preview" -v  "large" -o " " http://www.apple.com/trailers/home/xml/current.xml` 

These two programs are ported and available for other operating systems. The wget “-c” (continue) is optional. You can use any other downloader instead of wget. I suggest curl

Saturday, November 3, 2007

Reading RSS/XML feeds in Elinks Line Browser

Raggle RSS Aggregator on ConsoleThis one is for console monkeys out there. Reading RSS/XML feeds in your web browser is not limited to graphical browsers alone, even our light weight console based Elinks line browser can do it with Raggle console RSS aggregator written in ruby.

Using WEBrick-based Raggle web interface allows us to use raggle from your Elinks line browser itself instead of its default console interface (see above image). The raggle web interface listens on port 2222 by default (you change it with command line parameters), point your Elinks browser to http://localhost:2222 and enjoy reading RSS/XML feeds at your leisure.

Its a good idea to run 'raggle --server' inside a screen session, once raggle is started, open a new Elinks window and give the type this URL http://localhost:2222

$ raggle --server Raggle: Loading config... Raggle: Loading feed list... Raggle: Loading theme... Raggle: Loading feed cache... Loading templates from "/home/arky/.raggle/web_ui/inc". localhost - - [03/Nov/2007:20:45:05 IST] "GET / HTTP/1.1" 200 681 - -> / localhost - - [03/Nov/2007:20:45:08 IST] "GET /raggle/desc HTTP/1.1" 200 2186 - -> /raggle/desc localhost - - [03/Nov/2007:20:45:08 IST] "GET /raggle/item HTTP/1.1" 200 6934 - -> /raggle/item localhost - - [03/Nov/2007:20:45:10 IST] "GET /raggle/feed HTTP/1.1" 200 72146 - -> /raggle/feed localhost - - [03/Nov/2007:20:45:12 IST] "GET /titlebar.html HTTP/1.1" 200 1001 - -> /titlebar.html localhost - - [03/Nov/2007:20:45:20 IST] "GET /inc/default.css HTTP/1.1" 200 7345 http://localhost:2222/raggle/desc -> /inc/default.css

Here you can see raggle web interface in Elinks. There are some issue and bugs with the raggle web_ui but I guess they would be solved in near future.
Elinks page showing Raggle Web interface

Resume Downloads in Firefox / Iceweasel

After my recent post about Firefox Annoyances: Download Resume Problems I observed that some of my readers were trying to find out how to resume their half-downloaded files in firefox/iceweasel. Sorry, the Firefox / Iceweasel doesn't yet continue half-downloaded between network failure or crashes. However you can try this alternative method.

Here is how you can continue the download from a crashed firefox / iceweasel using wget. First lets get rid of '.part' extension that the browser adds while downloading.

mv BigFile.zip.part BigFile.zip

Now resume/continue the download with wget's "-c / --continue" option.

wget --continue http://www.SomeSite.com/files/BigFile.zip

Saturday, September 29, 2007

Wget Re-tries!!

Its just that kind of day, nothing just works. I need to get this huge source pack and the Internet connection is acting up again. I have long since given any hope of ISP fixing the connection timeouts and total connection failures.

So, the wget program grabbing the file from the Internet running in background sputters after 20 or so tries and gives up. This calls for extreme measures.

$ wget -t 0 -c http://examplesite.com/pub/xxxx.bz2

The -t ( --tries ) set to 0 (zero) which means it keeps on trying infinitely until the hell freezes over. And -c ( --continue ) is to continue grabbing the half downloaded file.

Popular Posts