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

Using 'OR' and 'AND' in SQL Server -

python - Finding intersection between ellipse and a line -

c++ - NetBeans Remote Development with additional configuration -