fixed a stray diff boundary and reorganized imports

This commit is contained in:
Ed Summers
2020-09-29 11:28:08 -04:00
parent d75ecf5377
commit a2b196bc25

View File

@ -1,18 +1,18 @@
#!/usr/bin/env python3
import os
import re
import sys
import yaml
import codecs
import argparse
import yaml
import urllib3
import dateutil
import feedparser
from bs4 import BeautifulSoup
from bs4 import BeautifulSoup
from mastodon import Mastodon
from datetime import datetime, timezone, MINYEAR
import urllib3
import re
DEFAULT_CONFIG_FILE = os.path.join("~", ".feediverse")
@ -204,10 +204,8 @@ def get_entry(entry, include_images, generator=None):
links = [l for l in entry.links if l.get("type") == "text/html"]
if links:
url = links[0]["href"]
=======
t = tag['term'].replace(' ', '_').replace('.', '').replace('-', '')
hashtags.append('#{}'.format(t))
>>>>>>> steinarb/fix-space-in-hashtags
return {
'url': url,
'link': entry.link,