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
Post a Comment