mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Remove not working recipe
This commit is contained in:
parent
b83c7be4d9
commit
363e64dae9
@ -1,40 +0,0 @@
|
||||
#!/usr/bin/env python2
|
||||
|
||||
__license__ = 'GPL v3'
|
||||
__copyright__ = '2008, Darko Miletic <darko.miletic at gmail.com>'
|
||||
'''
|
||||
sciencemag.org
|
||||
'''
|
||||
from calibre.web.feeds.news import BasicNewsRecipe
|
||||
|
||||
|
||||
class ScienceAAS(BasicNewsRecipe):
|
||||
title = u'Science AAAS'
|
||||
__author__ = u'Darko Miletic'
|
||||
language = 'en'
|
||||
|
||||
description = u'The best in science news, commentary, and research'
|
||||
oldest_article = 7
|
||||
max_articles_per_feed = 100
|
||||
no_stylesheets = True
|
||||
use_embedded_content = False
|
||||
simultaneous_downloads = 1
|
||||
delay = 1
|
||||
timefmt = ' [%A, %d %B, %Y]'
|
||||
needs_subscription = True
|
||||
LOGIN = 'http://www.sciencemag.org/cgi/login'
|
||||
|
||||
def get_browser(self):
|
||||
br = BasicNewsRecipe.get_browser(self)
|
||||
if self.username is not None and self.password is not None:
|
||||
br.open(self.LOGIN)
|
||||
br.select_form(nr=0)
|
||||
br['username'] = self.username
|
||||
br['code'] = self.password
|
||||
br.submit()
|
||||
return br
|
||||
|
||||
keep_only_tags = [dict(name='div', attrs={'id': 'content-block'})]
|
||||
|
||||
feeds = [(u"Science: Current Issue",
|
||||
u'http://www.sciencemag.org/rss/current.xml')]
|
Loading…
x
Reference in New Issue
Block a user