Commit 9c91a82a authored by Cody Zacharias's avatar Cody Zacharias Committed by GitHub

Fix bug

parent 9d10daf3
......@@ -2,6 +2,7 @@ from . import datelock, db, get, feed, output
from bs4 import BeautifulSoup
import aiohttp
import asyncio
import concurrent.futures
import datetime
import re
import sys
......@@ -60,16 +61,16 @@ class Search:
for tweet in self.feed:
self.count += 1
link = tweet.find("a", "tweet-timestamp js-permalink js-nav js-tooltip")["href"]
url = "https://twitter.com{}".format(link)
futures.append(loop.run_in_executor(executor, await get.Tweet(url, self.config, self.conn))
url = "https:/twitter.com{}".format(link)
futures.append(loop.run_in_executor(executor, await get.Tweet(url, self.config, self.conn)))
await asyncio.gather(*futures)
except:
pass
else:
else:
for tweet in self.feed:
self.count += 1
await output.Tweets(tweet, self.config, self.conn)
await output.Tweets(tweet, "", self.config, self.conn)
else:
self.initial = 0
......
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