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

java - How to Configure JAXRS and Spring With Annotations -

visual studio - TFS will not accept changes I've made to a Java project -

php - Create image in codeigniter on the fly -