Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #73769
| From | Dave Angel <davea@davea.name> |
|---|---|
| Subject | Re:Writing files at run time |
| Date | 2014-06-30 21:05 -0400 |
| Organization | news.gmane.org |
| References | <7038fda7-a755-49e0-9ec9-1ae11338d3b3@googlegroups.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.11354.1404176644.18130.python-list@python.org> (permalink) |
subhabangalore@gmail.com Wrote in message: > Dear Group, > > In my previous post["https://groups.google.com/forum/#!topic/comp.lang.python/ZYjsskV5MgE"] I was trying to discuss some issue on file writing. > > I got an associated issue. > > I am trying to crawl a link, through urllib and trying to store its results in different files. As discussed I could work out a solution for this and with your kind help trying to learn some new coding styles. > > Now, I am getting an associated issue. > > The crawler I am trying to construct would run daily-may be at a predefined time. > [I am trying to set the parameter with "time" module]. > > Now, in the file(s) data are stored, are assigned or created at one time. > > Data changes daily if I crawl daily newspapers. > > I generally change the name of the files with a sitting for few minutes before a run. But this may not be the way. > > I am thinking of a smarter solution. > > If anyone of the esteemed members may kindly show a hint, how the name of the storing files may be changed automatically as crawler runs every day, so that data may be written there and retrieved. > > Thanking you in advance, > Regards, > Subhabrata Banerjee. > > Make a directory name from datetime. datetime. now () and put the files there. -- DaveA
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Writing files at run time subhabangalore@gmail.com - 2014-06-30 12:59 -0700 Re:Writing files at run time Dave Angel <davea@davea.name> - 2014-06-30 21:05 -0400
csiph-web