2016-08-29T22:49:43
Python Date Range
Set the end date with the current date and time and the start date 1 week prior:
import datetime
start_date = datetime.datetime.now() - datetime.timedelta(days=7)
end_date = datetime.datetime.now()