Date : October 27, 2015
When I first wrote and shared @ABS DLI Downloader, I did not imagine that it will be useful to so many people and for so many years. I am thankful to everyone who used this software, reported bugs and suggested improvements. Unfortunately, because of time constraint, I will no longer be able to support @ABS DLI Downloader. However, I believe that @ABS DLI Downloader has served it’s purpose and today there are many other free software tools (with more functionality) available for downloading books from the Digital Library of India.
Still, at the moment the following version is working and you may continue to use it (as long as it works!).
*************************************************************************************
Date : April 29, 2012
Now the latest version @ABS DLI Downloader V2.2 is available here.
The changes in this version includes –
- Upto 20 missing pages are ignored
- Books with six digit barcode ( ex – 129886) can be downloaded.
- The DLI Server http://www.new1.dli.ernet.in is used.
( http://www.new.dli.ernet.in is down at the moment)
*************************************************************************************
Date : September 02, 2011
The new version of DLI Downloader Software @ABS DLI Downloader V2.1 is out.
You can download it from here .
This is a quick update to attend the bug (some book not getting downloaded) caused by recent changes in DLI. Comments and feedback for improvement are always welcome.
*************************************************************************************
Date : January 02, 2011
Friends! The new version of DLI Downloader Software @ABS DLI Downloader V2 is out.
You can download it from here .
If you have already used the previous version of this software you would find the same interface with the added advantage of access to more books from different servers of DLI.
If you are visiting for first time and want to know what the heck is this @ABS DLI Downloader and Digital Library of India then read on.
*************************************************************************************
Date : December 11, 2009
Recently I stumbled upon our own Digital Library of India (DLI) http://www.new.dli.ernet.in/ .
DLI is Hosted by: Indian Institute of Science, Bangalore in co-operation with CMU, IIIT, NSF, ERNET and MCIT for the Govt. of India and 21 participating centers.
It contains a huge collection of scanned books.
It’s just amazing!
The guys out there must have put tremendous efforts to bring the wealth of the knowledge to digital world.
The only blemish in this otherwise excellent work is their presentation.
See for yourself. Their plugin makes reading books online a difficult proposition.Further there is this temptation to download books and read at leisure.
So I did a simple Google search for some downloader software which resulted in a few scripts strewn here and there…nothing solid.
It was then that I decided to do it myself.(With the help of iText PDF library and Of course Google is always there!)
This resulted in – @ABS DLI Downloader
Download Here : http://www.4shared.com/file/172956037/2109eb67/_2__ABS_DLI_Downloader.html
Once you provide the barcode of the book to @ABS DLI Downloader it brings the book to your computer and saves it in C:\DLI as barcode.PDF.
You need JAVA run time installed on your computer to run @ABS DLI Downloader.
If not already installed you can download it from – http://java.com/en/download/manual.jsp
In case you are connecting to internet through a Proxy Server then use the following to rum from windows command shell after suitably replacing proxy host and proxy port for your network.
java -jar -Dhttp.proxySet=true -Dhttp.proxyHost=172.111.14.14 -Dhttp.proxyPort=3129 @ABSDL~1.jar
So I hope you can download your favorite book . Happy Reading!
*************************************************************
Logic of Barcode
Digital Library of India stores books in Tiff format.
The URL for the first page of the book is something like http://www.new.dli.ernet.in/data/upload/0044/297/PTIFF/00000001.tif
Note that page number is stored in the format – 00000001.tif so the fifth page would be 00000005.tif. and the URL would be http://www.new.dli.ernet.in/data/upload/0044/297/PTIFF/00000005.tif.
Therefore if one could get the first page of URL of the book it is easy to download the rest of the book.
One way would be to simply query http://www.new.dli.ernet.in/cgi-bin/DBscripts/allmetainfo.cgi?barcode= mybarcode
And extract the URL of first page of the book from the response.
However, I found some interesting pattern while playing with DLI. Only last seven digits of barcode are used in forming URL of first page. Do you notice the 0044/297 part in example above? This is created by using the barcode of the book which in this case is 5990010044292. Notice that 0044 is same as in barcode. And 297 = 292 + 5!
Here is the complete logic of converting barcode to URL.
String BarCodeToUrl(String barCode) {
String myURL=null;
// An Example of URL representation in this program
// http://www.new.dli.ernet.in/data_copy/upload/0081/748/PTIFF/00000001.tif
// ******urlpart1*************|urlpart2*|*****
String urlpart1 = “http://www.new.dli.ernet.in/”;
String urlpart2 = null; // data_copy
String urlpart3 = “/upload/”;
String urlpart4 = null; // 0081
String urlpart5 = “/”;
String urlpart6 = null; //748
String urlpart7 = “/PTIFF/”;
String urlpart8 = “00000001.tif”;
int len = barCode.length();
String barcodepart1 = barCode.substring(len – 7, len – 3); // The 4 digits before barcodepart2
String barcodepart2 = barCode.substring(len – 3); // Last 3 digits of barcode
urlpart4 = barcodepart1;
int bar1;
int bar2;
try {
bar1 = Integer.parseInt(barcodepart1); // Convert string to integer
bar2 = Integer.parseInt(barcodepart2); // convert string to integer
} catch (java.lang.NumberFormatException e) {
return null;
} // invalid bar1
// This is the logic of coverting barcode to URL
if (bar1 <= 51) {
urlpart2 = “data”;
} else if (52 <= bar1 && bar1 <= 85) {
urlpart2 = “data_copy”;
} else if (86 <= bar1 && bar1 <= 123) {
urlpart2 = “rawdataupload”;
} else if (124 <= bar1 && bar1 <= 132) {
urlpart2 = “rawdataupload1”;
}
//System.out.println(“test”+urlpart2);
if (urlpart2 != null) {
if (bar1 <= 85) {
urlpart6 = String.valueOf(bar2 + 5);
} else if (86 <= bar1 && bar1 <= 100) {
urlpart6 = String.valueOf(bar2);
} else if (101 <= bar1 && bar1 <= 132) {
urlpart6 = String.valueOf(bar2 + 2);
}
if (urlpart6.length() == 1) {
urlpart6 = “00” + urlpart6;
} else if (urlpart6.length() == 2) {
urlpart6 = “0” + urlpart6;
}
myURL = urlpart1 + urlpart2 + urlpart3 + urlpart4 + urlpart5 + urlpart6 + urlpart7 + urlpart8;
}
return myURL;
}
}
****************************************************************
One thing you must have noticed that maximum number allowed for bar1 is 132 therefore if you try to download a book say A Pocket-Book For Mechanical Engineering., 99999990163321. with bar1 = 163
DLI does not show this book and hangs without giving any warning.
@ABS DLI Downloader would give you the error message – “Digital Libray Error-Try Another Barcode”.
Update on 02 Jan 2011 DLI has resolved this missing link issue and now with @ABS DLI Downloader V2 you can download all such books.
****************************************************************-
awesome software but need of a video tutorial r a guide to do it step by step.
by having a tutorial it would b awesome.
but is it also possible to download books frm other centers such as hyderabad , noida
kindly reply me
id is sharath_1861@yahoo.com
s i got it.
it is awesome but some books don have barcode in it.
what to do about it?
but y is right clik n paste is disabled in barcode place since v usually use mouse to cpy paste.
can this pgrm b altered n used to paste thru mouse?
if it can b altered kindly look into my request.
u must b a genius really it is very useful to me.
since b4 i used to download all tiff pages n then use adobe pro version to convert to pdf and then save it which was a very tedious process and besides needed to have llot of hard disk space to convert it.
i don kno hw to thank u
thank u once again
@ sharath
dude.. pl tell me hw to dwnload too!! i ve been tryin to download a novel called joker in the pack but m unable to do it so.. pl guide me hw to use.. send me a mail..
@teja
i think i can help u with a tut but send me ur e-mail id to
sharath_1861@yahoo.com
kindly mention dli in subject since i’m scared about spams that flood into mail box.
i’ll try to give u some screen shots to ur mail id
hope that will solve ur problem:)
@ sharath
pl help me too (or forward me d mail u sent 2 teja)my id is
sachin_kb02@yahoo.co.in
regards
http://www.mediafire.com/?0jwwzzizmzu
cpy the above link to address bar and paste it and download it
this is the video tut i’ve done so access it and see how to download using this awesome software.
the above link usually dies within few days so b quick enough to grab it b4 it dies
1)go to a browser and type the dli address which leads u to dli site
2)type the subject of the book u want to download press enter
3)in the video the nos which r highlighted is the barcode which should b copied
4)open dli downloader and press ctrl+v and NOTE THAT RIGHT CLK OF MOUSE DON’T WORK!
5)PRESS SAVE IT’LL B SAVED IN C:/DLI FOLDER.
NOTE:- NEVER EVER COPY JUST DLI DOWNLOADER AND PASTE IT OVER THE DESKTOP BCOZ IT WON’T WORK IT JUST SAYS DOWNLOADING AND NOTHING HAPPENS.
SO LET THE DOWNLOADER B IN ITS FOLDER ITSELF
1ST OF ALL EXTRACT THE DOWNLOADER FRM RAR FORMAT AND NEVER LEAVE IT IN RAR FORMAT ITSELF
IF U STILL HAVE PRBLM THEN KINDLY LET ME KNOW
thanking u in advance
if above steps help u then the trouble i’ve taken has served the purpose
thx sharath
i got it now
but the link of vid is broken
nevermind thx a zillion times………..
i wanna correct my self that video file is not broken
thanks again
One thing you must have noticed that maximum number allowed for bar1 is 132 therefore if you try to download a book say A Pocket-Book For Mechanical Engineering., 99999990163321. with bar1 = 163
DLI does not show this book and hangs without giving any warning.
@ABS DLI Downloader would give you the error message – “Digital Libray Error-Try Another Barcode”.
WHAT IS THE SOLUTION FOR THIS MY FRIEND?????
N HOW TO DOWNLOAD SUCH BOOKS
It is not possible to download such books unless the people who created DLI do something about it and make them available for us…
little saddened by d reply as it would leave large nos of books undownloadble
just wannna ask u few more points
1. can .tiff files be changed to .txt files (any software)
2. i have seen that some .tiff books changed into pdf can be reflowed on adobe reader. but not dli books y??
any method to reflow them as well
thxxxx in advance
You may use OCR (Optical Character Recognition) software to extract text from scanned PDF or Tiff books.
Nuance PDF Converter (http://www.nuance.com/imaging/products/pdfconverter.asp) is a good commercial tool.
FreeOCR 2.6 (http://www.softpedia.com/progDownload/FreeOCR-Download-79759.html) is a free tool you would like to check.
However, if a book is badly scanned or contains Mathematical Formula then usually results are not quite satisfactory even with the best of OCR tools.
The FAQ at DLI says “Because of the non-availability of quality-segmented data, the recognition rate of the Indian language OCR cannot be pushed beyond 90% using character level recognition.” (http://dli.iiit.ac.in/faq.html)
So it’s not very promising for Indian languages at the moment…
*********************************************
BTW why you need this reflow ?
Do you want to have text search functionality or you wish to read books on small screen devices (PDA phone or ebook reader)? I’m asking this because there are some alternatives available depending upon your need.
thanks for replying
yes u got me there, i actually read on my reader pocket pro
that is why i asked,(i strongly recommend u to have one as well) such gadget can reflow pdf (and read by tts, search words etc) to make them readable on their small paper like screen and also increase font size.
i think the text of dli are badly (quality)scanned that is why dont reflow on my reader. but again i am confuse as the files are so bulky thus should have good enough scanning quality to be refflowed on my device.
is it possible to increase pdf text quality to render them reflowable.
also can i join u on any social networking site or forum like twitter, facebook etc as i am already ur fan and have alot of queries.
regards and best wishes
I’m glad if you found this post useful.
I too love reading books on my PDA and I’ve found a method of rendering PDF files making them suitable for small screen devices…It also works for Technical Books containing mathematical symbols..I’ve not checked DLI books yet but hopefully it should work…I’d share it once I finish the work ..This is a bit messy as of now..So some trimming & fine tuning is needed..
Your queries/suggestions are always welcome and you may post them on this page..
hi alok ji
its really great that u ve come up with a new version of dli
i downloaded it today only
one thing i really feel pained is the trash of work the dli people ve done
also i feel that people as well ve stopped reading books as i find so less comments on ur blog
i will give my comments on the new downloader soon
thanks a zillion times
regards
sachin bhati
Hi pls update the mediafire link.. its broken…
Thanks a lot man. You saved me a ton of work!
[…] 2.Alok Shukla’s ABS DLI Downloader: This is a small piece of good software which allows you to download entire TIFF books from DLI as PDF’s.Unfortunately did not work for me. […]
Do you have JAVA run time installed on your system?
What happens when you run the program?
Hi Alok,
my compliments on taking the effort to develop this software.
I have Java run time on my computer. I tried many times before giving up,no idea what went wrong:) .
all the best
Please read accompanied READMEFIRST.TEXT. Hope it helps..Still if it doesn’t work then Whats the error message ?
Secondly Are you connecting to internet through a Proxy Server?
Alok Shuklaji,
Thanks a lot for sharing your wonderful software with all of us.
At present, after downloading one book, we have to restart the programme to be able to enter the bar code. It would be convenient if we can go on downloading one book after the other without having to restart the programme.
Alok Shuklaji,
One more request:
While downloading a book, if a page is not found, the download stops abruptly. It is better to have a book without 1 or 2 pages than not being able to download it.
Could you make it skip the unavailable pages and continue with the download?
Alok Shuklaji,
One more suggestion: You may be aware that DLI now have one more sub-site with lots of new books (with plenty of new titles in Indology). The URL of this site is http://www.new1.dli.ernet.in/
Could you please update your DLI Downloader to include the books in this new site too?
Bharateeya Jee , Thanks for your feedback.
I’d include your suggestions in future update.
Dear Alok Shukla Ji,
First of All many thanks for creating such a wonderful software and making it available free of cost. You truly are a noble man. I downloaded a number of books from the DLI website using your original version of the software. However, there were a few books ( like one with Barcode–99999990150931; the other with Barcode–99999990182221 and another with barcode–4990010257316 ) which inspite of opening fine on the DLI reader couldn’t be downloaded through your original software (as it would give an error — “Digital Library Error-Try Another Barcode”). I then downloaded the version 2 of your software and this time around the software didn’t give the Library error and connected momentarily with the DLI website and displayed ” Downloading Pg 1 of 148″ and then instantly stops download giving an error ” Download Failed–Check Internet Connection”. Now, my internet is working fine all this time. This error cropped up for all the above 3 books that couldn’t be downloaded using the original version of your software. (P.S.— All the 3 books display correctly on the DLI Reader)
So, what is the cure for this problem Sir? Is it something that I’m doing wrong or is this a software issue? I have given you the barcodes, you may try downloading yourself to see the problem that occurred (that is assuming the problem isn’t because of my computer, and is a software issue).
Thank You
With Warm Regards
Raza Kazmi
email—raza.kazmi17@gmail.com
@ Raza & @Boris -> I’m glad if you found the software useful. Thanks a lot for your feedback. I’d definitely look in to the issues and get back to you.
Dear all !
I was using @ABS DLI Downloader V2 for download some books and it is a great software, thanks a lot.
but, since few days I can’t download some books.
For exemple : 99999990154314 doesn’t work. The software get the information of the total number of pages, download the first page but after I have the message “Download failed – Check the Internet connection”… (of course my Internet connection is ok…)
I can read the book page by page (http://www.new.dli.gov.in/scripts/FullindexDefault.htm?path1=/data1/upload/0009/071&first=1&last=646&barcode=99999990154314) but it takes a lot of time !
Any idea of the problem ? I think DLI changed something…
Please check @ABS DLI Downloader V2.1.
hi alok ji
writing after such a long time
hope you r doing good
i wish if you could tell about other international digital website and softwares to download from there too
regards
sachin
Thanks for your work Alok! However with 2.1 I am getting the “Download failed – Check the Internet connection” message after it gets the start and end page numbers and starts downloading.
I searched around and found this software which worked great – http://www.sanskritdocuments.org/scannedbooks/dlidownloader/
Please mention the barcode so that I can check the problem.
It may happen when the book has a missing page.
In next update I’d take care of this issue.
Hi Guys,
This SW has helped in using DLI. Awesome Alok…I found some problems in v2.1:
1. The URL http://www.new1.dli.ernet.in/ doesn’t work
2. While downloading a book, if a page is not found, the download stops abruptly.
3. Converting to pdf can be optional. Attached a S/W to convert all tifs together in single go to pdf.
Alok I did these changes in SW and is sharing here:
Download from:
ABSDownloader:
http://www.4shared.com/file/xTj0V3sS/ABSDLIdownloader.html
tif2pdf:
http://www.4shared.com/file/XuGkHy44/tif2pdf.html
Thanks
Naresh
Thanks Naresh!
Wish you all a very happy new year!!
I’m a sort of busy now but as soon as I get time I’ll take into account your suggestions in next version…
Thanks for sharing your tool.
Sorry mistakenly uploaded same file for both tools. Corrected this:
ABSDownloader:(Fixes for /www.new1.dli.ernet.in/ and a page is not found, the download stops abruptly)
http://www.4shared.com/file/gZbdi6Ks/ABSDLIdownloader.html
Also I tried mentioned http://www.sanskritdocuments.org/scannedbooks/dlidownloader/ this tool and it failed miserably on first book I tried: 4990010104154. Download failed in between and didn’t resume.
thanks
naresh
Dear Mr Shukla
Thanks for the effort.
I would like to know why certain books are not visible in dli tiff viewer itself. If scan is not available why they are listing it in the first place.
I have written to them but they haven’t replied.
Do you have any idea?
Regards
KK
Shuklaji,
Namaste,
I use DLI Downloader v2.1. I find that it is not able to download some books from DLI. At the same time I am able to view pages of these books in the browser. I give below barcodes of a few for your reference. It would a great help, if you keep this in mind while upgrading the SW next time.
99999990041239, 99999990001047, 5010010029892, 99999990010703, 4990010004029
Thanks for your feedback.
Please try the latest version 2.2.
Shuklaji,
Thank you very much for taking care of all the requirements. Now I am able to download books which could not be downloaded with earlier versions of SW. Thanks again.
Shuklaji,
There is another point that I noticed later. It changes the page canvas size to ‘letter’ size thus creating unnecessary and uneven space on right or left side of the image. This doesn’t look good in some cases.
Please consider rectifying this in your next update,
Thanks a lot
Shuklaji,
I am now using your wonderful software “DLI Downloader 2.2” to download from DLI. It performs better than earlier versions. Still, there are some books that fail to be downloaded though we can view them online. That means their scanned images are available online at DLI, but DLID2.2 is not able to access them. I give below PAN numbers of few such books for your reference.
99999990143107
99999990143108
99999990143109
The message that we get is “Download failed, Tried upto 20 missing pages”, where as we are able to view or download all the pages one by one from the browser (Mozilla Firefox).
I request you to take care of this problem while you update the DLID next time.
Thank you very much, really helpful
Excellent !!! can we download entire book in one shot in pdf formate i.e. instat of downloding all pages one by one is it possible to download all pages at once? Please reply me at jivankumar80@rediffmail.com
Thank you sir, for your software.
I am trying to download a Marathi translation of the rigveda, saved photographed and digitized at your site: http://www.new1.dli.ernet.in/scripts/FullindexDefault.htm?path1=/data9/upload/0289/612&first=1&last=454&barcode=99999990291680.
I could do it on my IPadmini, but not on my PC.
I cannot even find it here.
Please help?
I never knew that DLI was so old and everybody knew it!