Skip to content
This repository has been archived by the owner on Mar 30, 2023. It is now read-only.

Commit

Permalink
Workaround for #597
Browse files Browse the repository at this point in the history
  • Loading branch information
pielco11 committed Dec 11, 2019
1 parent 9d8db6f commit 26769a3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions twint/url.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import datetime
from sys import platform
import logging as logme

mobile = "https://mobile.twitter.com"
Expand All @@ -12,6 +13,8 @@ def _sanitizeQuery(base,params):
return _serialQuery

def _formatDate(date):
if "win" in platform:
return f'\"{date}\"'
try:
return datetime.datetime.strptime(date, "%Y-%m-%d %H:%M:%S").timestamp()
except ValueError:
Expand Down

0 comments on commit 26769a3

Please sign in to comment.