commented out the results output to txt file
This commit is contained in:
16
twintgui.py
16
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()
|
||||
|
||||
Reference in New Issue
Block a user