Thread: help please
View Single Post
Old 08-03-2016, 04:34 AM   #2
oneillpt
Connoisseur
oneillpt began at the beginning.
 
Posts: 63
Karma: 46
Join Date: Feb 2011
Device: Kindle 3 (cracked screen!); PW1; Oasis
Quote:
Originally Posted by JIGACE View Post
Can someone make a recipe to this feed? http://www.maspormas.com/author/asantiago/feed/
after hours of tryng its pretty clear that im useless
Code:
#!/usr/bin/env python2
# vim:fileencoding=utf-8
from __future__ import unicode_literals, division, absolute_import, print_function
from calibre.web.feeds.news import BasicNewsRecipe

class AdvancedUserRecipe1470212796(BasicNewsRecipe):
    title          = 'Maspormas'
    oldest_article = 7
    max_articles_per_feed = 100
    auto_cleanup   = True

    feeds          = [
        ('Maspormas', 'http://www.maspormas.com/author/asantiago/feed/'),
    ]
Generated by giving the feed title and feed url, clicking the 'add feed' button (most likely mistake was forgetting to click that button, as no advanced coding was needed). Give a recipe title, save and close the recipe editor.
oneillpt is offline   Reply With Quote