commented out the results output to txt file

This commit is contained in:
Gamotiv
2021-08-20 22:27:22 +02:00
parent 0c88f2fb15
commit 2226a1b5c6
2 changed files with 13 additions and 11 deletions

View File

@@ -50,8 +50,8 @@
<string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Cantarell'; font-size:11pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Dubai&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Ubuntu'; font-size:11pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Cantarell';&quot;&gt;Dubai&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
<widget class="QTextEdit" name="Limit">
@@ -152,7 +152,7 @@ p, li { white-space: pre-wrap; }
</date>
</property>
<property name="displayFormat">
<string>yyyy/M/dd</string>
<string>dd/M/yyyy</string>
</property>
<property name="calendarPopup">
<bool>true</bool>
@@ -191,7 +191,7 @@ p, li { white-space: pre-wrap; }
</date>
</property>
<property name="displayFormat">
<string>yyyy/M/dd</string>
<string>dd/M/yyyy</string>
</property>
<property name="calendarPopup">
<bool>true</bool>

View File

@@ -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()