mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
remove recipe for no new content since march
This commit is contained in:
parent
6224c9b0cb
commit
ab4a599307
@ -1,51 +0,0 @@
|
|||||||
from calibre.web.feeds.news import BasicNewsRecipe
|
|
||||||
|
|
||||||
|
|
||||||
class Bash_org_pl(BasicNewsRecipe):
|
|
||||||
title = u'Bash.org.pl'
|
|
||||||
__author__ = 'fenuks'
|
|
||||||
description = 'Bash.org.pl - zabawne cytaty z IRC'
|
|
||||||
category = 'funny quotations, humour'
|
|
||||||
language = 'pl'
|
|
||||||
cover_url = u'http://userlogos.org/files/logos/dzikiosiol/none_0.png'
|
|
||||||
max_articles_per_feed = 50
|
|
||||||
no_stylesheets = True
|
|
||||||
keep_only_tags = [dict(name='a', attrs={'class': 'qid click'}),
|
|
||||||
dict(name='div', attrs={'class': 'quote post-content post-body'})]
|
|
||||||
|
|
||||||
def latest_articles(self):
|
|
||||||
articles = []
|
|
||||||
soup = self.index_to_soup(u'http://bash.org.pl/latest/')
|
|
||||||
tags = soup.findAll('a', attrs={'class': 'qid click'})
|
|
||||||
for a in tags:
|
|
||||||
title = a.string
|
|
||||||
url = 'http://bash.org.pl' + a['href']
|
|
||||||
articles.append({'title': title,
|
|
||||||
'url': url,
|
|
||||||
'date': '',
|
|
||||||
'description': ''
|
|
||||||
})
|
|
||||||
return articles
|
|
||||||
|
|
||||||
def random_articles(self):
|
|
||||||
articles = []
|
|
||||||
for i in range(self.max_articles_per_feed):
|
|
||||||
soup = self.index_to_soup(u'http://bash.org.pl/random/')
|
|
||||||
url = soup.find('a', attrs={'class': 'qid click'})
|
|
||||||
title = ''
|
|
||||||
url = 'http://bash.org.pl/random/'
|
|
||||||
articles.append({'title': title,
|
|
||||||
'url': url,
|
|
||||||
'date': '',
|
|
||||||
'description': ''
|
|
||||||
})
|
|
||||||
return articles
|
|
||||||
|
|
||||||
def populate_article_metadata(self, article, soup, first):
|
|
||||||
article.title = soup.find(attrs={'class': 'qid click'}).string
|
|
||||||
|
|
||||||
def parse_index(self):
|
|
||||||
feeds = []
|
|
||||||
feeds.append((u"Najnowsze", self.latest_articles()))
|
|
||||||
feeds.append((u"Losowe", self.random_articles()))
|
|
||||||
return feeds
|
|
Binary file not shown.
Before Width: | Height: | Size: 473 B |
Loading…
x
Reference in New Issue
Block a user