diff --git a/morss/cli.py b/morss/cli.py index a9de7b4..94c22fd 100644 --- a/morss/cli.py +++ b/morss/cli.py @@ -15,12 +15,11 @@ # You should have received a copy of the GNU Affero General Public License along # with this program. If not, see . -import sys -import os.path import argparse +import os.path +import sys -from .morss import FeedFetch, FeedGather, FeedFormat -from .morss import Options +from .morss import FeedFetch, FeedFormat, FeedGather, Options def cli_app(): diff --git a/morss/readabilite.py b/morss/readabilite.py index a261798..b9709fb 100644 --- a/morss/readabilite.py +++ b/morss/readabilite.py @@ -15,10 +15,11 @@ # You should have received a copy of the GNU Affero General Public License along # with this program. If not, see . +import re + import lxml.etree import lxml.html from bs4 import BeautifulSoup -import re def parse(data, encoding=None): @@ -352,6 +353,7 @@ def get_article(data, url=None, encoding_in=None, encoding_out='unicode', debug= if __name__ == '__main__': import sys + from . import crawler req = crawler.adv_get(sys.argv[1] if len(sys.argv) > 1 else 'https://morss.it') diff --git a/setup.py b/setup.py index 4817dc3..9b584ad 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,7 @@ -from setuptools import setup from glob import glob +from setuptools import setup + package_name = 'morss' setup(