forked from tanner/qotnews
fix import error.
This commit is contained in:
parent
6a91b9402f
commit
f5ccd844da
|
@ -12,7 +12,7 @@ from bs4 import BeautifulSoup
|
||||||
import settings
|
import settings
|
||||||
from utils import clean
|
from utils import clean
|
||||||
from misc.api import xml
|
from misc.api import xml
|
||||||
from _news import Base
|
from misc.news import Base
|
||||||
|
|
||||||
def _filter_links(links, category_url, excludes=None):
|
def _filter_links(links, category_url, excludes=None):
|
||||||
links = list(filter(None, [link if link.startswith(category_url) else None for link in links]))
|
links = list(filter(None, [link if link.startswith(category_url) else None for link in links]))
|
||||||
|
|
|
@ -14,7 +14,7 @@ import settings
|
||||||
from utils import clean
|
from utils import clean
|
||||||
from misc.time import unix
|
from misc.time import unix
|
||||||
from misc.api import xml
|
from misc.api import xml
|
||||||
from _news import Base
|
from misc.news import Base
|
||||||
|
|
||||||
def _get_sitemap_date(a):
|
def _get_sitemap_date(a):
|
||||||
if a.find('lastmod'):
|
if a.find('lastmod'):
|
||||||
|
|
|
@ -3,10 +3,6 @@ logging.basicConfig(
|
||||||
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
|
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
|
||||||
level=logging.DEBUG)
|
level=logging.DEBUG)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
import sys
|
|
||||||
sys.path.insert(0,'.')
|
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
from bs4 import BeautifulSoup
|
from bs4 import BeautifulSoup
|
||||||
from scrapers import declutter
|
from scrapers import declutter
|
Loading…
Reference in New Issue
Block a user