Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #73761 > unrolled thread
| Started by | subhabangalore@gmail.com |
|---|---|
| First post | 2014-06-30 12:59 -0700 |
| Last post | 2014-06-30 21:05 -0400 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.lang.python
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
| From | subhabangalore@gmail.com |
|---|---|
| Date | 2014-06-30 12:59 -0700 |
| Subject | Writing files at run time |
| Message-ID | <7038fda7-a755-49e0-9ec9-1ae11338d3b3@googlegroups.com> |
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.
[toc] | [next] | [standalone]
| From | Dave Angel <davea@davea.name> |
|---|---|
| Date | 2014-06-30 21:05 -0400 |
| Message-ID | <mailman.11354.1404176644.18130.python-list@python.org> |
| In reply to | #73761 |
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
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web