From d252771f7152a649f6c7ce62da2c22e465d795a8 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Tue, 10 Jun 2014 14:41:35 +0200 Subject: fixes #7 --- pyaggr3g470r/utils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'pyaggr3g470r/utils.py') diff --git a/pyaggr3g470r/utils.py b/pyaggr3g470r/utils.py index 336ec804..dcbf5027 100755 --- a/pyaggr3g470r/utils.py +++ b/pyaggr3g470r/utils.py @@ -42,9 +42,9 @@ import logging import datetime import operator import urllib +import subprocess from urlparse import urlparse, parse_qs, urlunparse from bs4 import BeautifulSoup - from collections import Counter from contextlib import contextmanager @@ -75,6 +75,9 @@ def opened_w_error(filename, mode="r"): finally: f.close() +def fetch(email, feed_id=None): + cmd = ['python', conf.basedir+'/fetch.py', email, str(feed_id)] + p = subprocess.Popen(cmd, stdout=subprocess.PIPE) def import_opml(email, opml_content): """ -- cgit