But the disadvantage with mechanize which I became aware quite soon was that it couldn't work with pages which employed java scripts and Docomo site used it/And I took quite a bit of time to find a get around it ,for which I had to examine the website source code in depth. I decided to find the direct url for the "uage page" and this url is somewhat fixed except that it is appended with a special request code(which is generated at every login).To get this code I needed to examine and get it from initial received html content. as Now for analysing the html content of a webpage I came across a python library know as beautifulsoup.After playing around with it for sometime, I finally figured out the request code.The next real pain was automating the script.Thought it was using crontab for some reason or other the script would'nt execute.Finally whern I googled out "crontab problem" I was surprised to find that people have infact made separate pages for problems with crontab as there can be too many of them.Supposedly the crontab "page edit" must have a blank line at the end but the main problem was when using crontab , all the paths as mentioned in the script(which in my case was for the file meant to store the usage details) have to be "absolute" and not "relative".
Finally after all that effort I was able to finish successfully with the script: Something exciting which I did in vacations. .Interested people can contact me for the code.