Commit a522ebc5 authored by Francesco Poldi's avatar Francesco Poldi

Merge branch 'master' of github.com:twintproject/twint

parents 8dbe1397 a7449b31
......@@ -98,8 +98,8 @@ import twint
# Configure
c = twint.Config()
c.Username = "now"
c.Search = "fruit"
c.Username = "realDonaldTrump"
c.Search = "great"
# Run
twint.run.Search(c)
......
......@@ -167,6 +167,8 @@ class Twint:
logme.debug(__name__+':Twint:main:username')
url = f"https://twitter.com/{self.config.Username}?lang=en"
self.config.User_id = await get.User(url, self.config, self.conn, True)
if self.config.User_id is None:
raise ValueError("Cannot find twitter account with name = " + self.config.Username)
if self.config.TwitterSearch and self.config.Since and self.config.Until:
logme.debug(__name__+':Twint:main:search+since+until')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment