Skip to content

Commit

Permalink
fix: Remove invalid git.RequestUrl kwarg
Browse files Browse the repository at this point in the history
  • Loading branch information
9ary authored and bb010g committed May 10, 2023
1 parent 2346f5c commit 2022b6a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions twint/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ async def Feed(self):
if len(self.feed) == 0 and len(self.init) == 0:
while (len(self.feed) == 0 or len(self.init) == 0) and favorite_err_cnt < 5:
self.user_agent = await get.RandomUserAgent(wa=False)
response = await get.RequestUrl(self.config, self.init,
headers=[("User-Agent", self.user_agent)])
response = await get.RequestUrl(self.config, self.init)
self.feed, self.init = feed.MobileFav(response)
favorite_err_cnt += 1
time.sleep(1)
Expand Down

0 comments on commit 2022b6a

Please sign in to comment.