Re: Accessing the files by last modified time

2012-03-23 Thread Sangeet
On Thursday, 22 March 2012 17:34:43 UTC+5:30, Tim Williams  wrote:
> On Mar 22, 7:33 am, Sangeet  wrote:
> > Hi
> >
> > I am new to the python programming language.
> >
> > I've been trying to write a script that would access the last modified file 
> > in one of my directories. I'm using Win XP.
> >
> > I saw a similar topic, on the forum before, however the reply using 
> > (os.popen) didn't work out for me. I'm not sure whether it was due to 
> > syntax errors either.
> >
> > Thanks,
> > Sangeet
> 
> Check out os.stat()

Hey, thanks I tried playing around with this. I haven't got what I exactly 
wanted, but on the way there for sure! :)

Sangeet
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Accessing the files by last modified time

2012-03-23 Thread Sangeet
On Thursday, 22 March 2012 17:19:23 UTC+5:30, Chris Rebert  wrote:
> On Thu, Mar 22, 2012 at 4:33 AM, Sangeet  wrote:
> > Hi
> >
> > I am new to the python programming language.
> >
> > I've been trying to write a script that would access the last modified file 
> > in one of my directories. I'm using Win XP.
> >
> > I saw a similar topic, on the forum before, however the reply using 
> > (os.popen) didn't work out for me. I'm not sure whether it was due to 
> > syntax errors either.
> 
> Recursively or non-recursively?
> Live monitoring or just one-time?
> What was the forum post in question?
> 
> In the simple case, you just need to stitch together these functions:
> http://docs.python.org/library/os.html#os.stat
> (note the .st_mtime attribute of the result)
> http://docs.python.org/library/os.path.html#os.path.join
> with one of these functions:
> http://docs.python.org/library/os.html#os.listdir
> http://docs.python.org/library/os.html#os.walk
> 
> Cheers,
> Chris

Thanks Chris, this helped me a lot! 
-- 
http://mail.python.org/mailman/listinfo/python-list


Fetching data from a HTML file

2012-03-23 Thread Sangeet
Hi,

I've got to fetch data from the snippet below and have been trying to match the 
digits in this to specifically to specific groups. But I can't seem to figure 
how to go about stripping the tags! :(

Sum2451102561.496 
[min]


Actually, I'm working on ROBOT Framework, and haven't been able to figure out 
how to read data from HTML tables. Reading from the source, is the best (read 
rudimentary) way I could come up with. Any suggestions are welcome!

Thanks,
Sangeet
-- 
http://mail.python.org/mailman/listinfo/python-list