Commit d383152b authored by Maxim Gubin's avatar Maxim Gubin Committed by Francesco Poldi

Fix 'Something is technically wrong' when scrapping a profile (#278)

* Support -1 for init

* Empty init should be -1 everywhere
parent 37ecaa41
......@@ -11,10 +11,8 @@ class Twint:
if config.Resume is not None and config.TwitterSearch:
self.init = f"TWEET-{config.Resume}-0"
else:
if config.Profile_full | config.Retweets | config.Favorites:
self.init = -1
else:
self.init = "-1"
self.init = -1
self.feed = [-1]
self.count = 0
self.user_agent = ""
......
......@@ -60,7 +60,7 @@ async def Search(config, init):
('src', 'unkn'),
('include_available_features', '1'),
('include_entities', '1'),
('max_position', init),
('max_position', str(init)),
('reset_error_state', 'false'),
]
q = ""
......
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