Scrapy dynamic file name based on timestamp for the logfile -


i using scrapy , logging results log file using log_file= in settings.py. want each time run spider should log different filename based on timestamp. possible achieve doing setting in settings.py?

try:

import time log_file = str(int(time.time())) 

settings.py python script, can write python code in it.


Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -