Exemplo n.º 1
0
def stishkipirozhki_ru(sync_date, source, entry):
    p = Pasty()
    p.text = strip(entry['content'][0]['value'])
    p.date = to_date(entry['published_parsed'])
    if not p.date: p.date = sync_date
    p.source = source.url
    return p
Exemplo n.º 2
0
def pirozhki_ru_livejournal_com(sync_date, source, entry):
    p = Pasty()
    p.text = strip(entry['summary_detail']['value'])
    p.date = to_date(entry['published_parsed'])
    if not p.date: p.date = sync_date
    p.source = source.url
    if len(p.text) > 255:
        return None
    return p