add fetched_on in API response
This commit is contained in:
parent
441b620b87
commit
f48a9b205d
2
vxApi.py
2
vxApi.py
@ -16,6 +16,7 @@ def getApiUserResponse(user):
|
||||
"tweet_count": user["statuses_count"],
|
||||
"created_at": user["created_at"],
|
||||
"protected": user["protected"],
|
||||
"fetched_on": datetime.now().timestamp(),
|
||||
}
|
||||
|
||||
def getApiResponse(tweet,include_txt=False,include_rtf=False):
|
||||
@ -249,6 +250,7 @@ def getApiResponse(tweet,include_txt=False,include_rtf=False):
|
||||
"lang": lang,
|
||||
"replyingTo": replyingTo,
|
||||
"replyingToID": replyingToID,
|
||||
"fetched_on": datetime.now().timestamp(),
|
||||
}
|
||||
try:
|
||||
apiObject["date_epoch"] = int(datetime.strptime(tweetL["created_at"], "%a %b %d %H:%M:%S %z %Y").timestamp())
|
||||
|
Loading…
x
Reference in New Issue
Block a user