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