|
|
|
@ -7,9 +7,9 @@ import random
|
|
|
|
|
import string
|
|
|
|
|
import urllib.request, urllib.parse, urllib.error
|
|
|
|
|
|
|
|
|
|
import bleach
|
|
|
|
|
import code128
|
|
|
|
|
import feedparser
|
|
|
|
|
import html5tidy
|
|
|
|
|
import lxml.html
|
|
|
|
|
import PIL
|
|
|
|
|
from readability import readability
|
|
|
|
@ -204,7 +204,7 @@ class Publications(Bureau):
|
|
|
|
|
end = entry.summary.rfind(" ", 0, 499)
|
|
|
|
|
entry.summary = entry.summary[0:end] + "…"
|
|
|
|
|
|
|
|
|
|
entry.summary = html5tidy.tidy(entry.summary, fragment=True)
|
|
|
|
|
entry.summary = bleach.clean(entry.summary, strip=True)
|
|
|
|
|
|
|
|
|
|
entries.append(entry)
|
|
|
|
|
|
|
|
|
|