Skip to content

Commit

Permalink
ADD: костыль под импорт питон виикли
Browse files Browse the repository at this point in the history
  • Loading branch information
axsapronov committed Nov 8, 2015
1 parent 63142cd commit b50816d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion digest/management/commands/import_python_weekly.py
Expand Up @@ -21,6 +21,9 @@ def import_python_weekly(issue_url, **kwargs):
link = x.cssselect('a')[0]
url = link.attrib['href']
title = link.text
_text = x.getnext()
if _text is None:
continue
text = etree.tostring(x.getnext()).decode('utf-8').replace('<br/>', '').strip()

item_data = {
Expand All @@ -41,7 +44,7 @@ def import_python_weekly(issue_url, **kwargs):


def main():
url = 'http://us2.campaign-archive.com/?u=e2e180baf855ac797ef407fc7&id=14f4381681'
url = 'http://us2.campaign-archive.com/?u=e2e180baf855ac797ef407fc7&id=f0452c372b'

This comment has been minimized.

Copy link
@alrusdi

alrusdi Nov 16, 2015

Collaborator

Саш, а чаво ты эту переменную в конфиг не вынесешь?


data = {
'query_rules': ParsingRules.objects.filter(is_activated=True).all(),
Expand Down

0 comments on commit b50816d

Please sign in to comment.