From 2226a1b5c692b4b4f004ca732b8e4f563c83f11b Mon Sep 17 00:00:00 2001 From: Gamotiv <49294700+Gamotiv@users.noreply.github.com> Date: Fri, 20 Aug 2021 22:27:22 +0200 Subject: [PATCH] commented out the results output to txt file --- mainwindow.ui | 8 ++++---- twintgui.py | 16 +++++++++------- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/mainwindow.ui b/mainwindow.ui index 6e1092d..fd77379 100644 --- a/mainwindow.ui +++ b/mainwindow.ui @@ -50,8 +50,8 @@ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } -</style></head><body style=" font-family:'Cantarell'; font-size:11pt; font-weight:400; font-style:normal;"> -<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Dubai</p></body></html> +</style></head><body style=" font-family:'Ubuntu'; font-size:11pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Cantarell';">Dubai</span></p></body></html> @@ -152,7 +152,7 @@ p, li { white-space: pre-wrap; } - yyyy/M/dd + dd/M/yyyy true @@ -191,7 +191,7 @@ p, li { white-space: pre-wrap; } - yyyy/M/dd + dd/M/yyyy true diff --git a/twintgui.py b/twintgui.py index fb257aa..6b86e6d 100644 --- a/twintgui.py +++ b/twintgui.py @@ -11,8 +11,7 @@ from PySide6.QtCore import Slot import sqlite3 #Ggsya made this :D -def backslash(): - return('\ '[0]) +backslash = '\\' #def check_and_create_dir(path): #if os.path.exists(path): @@ -46,9 +45,9 @@ def tweet_search(): filename = window.Filename.toPlainText() limit = window.Limit.toPlainText() if limit != '': - pass + pass else: - limit = 0 + limit = 0 c = twint.Config() c.Search = search c.Near = city @@ -57,8 +56,9 @@ def tweet_search(): c.Popular_tweets = window.Popular.checkState() c.Output = filename c.timedelta = '2' - #c.Since = - #c.Until = window.Until.date().toString() + c.Since = window.Since.date().toString() + c.Until = window.Until.date().toString() + #c.Username = twint.run.Search(c) @@ -73,7 +73,9 @@ window = loader.load("mainwindow.ui", None) #window.SearchButton.clicked.connect(date_cruncher) window.SearchButton.clicked.connect(tweet_search) +print(window.Since.date().toString()) +print(window.Until.date().toString()) window.show() -#print(window.Since.date().toString()) + app.exec()