I was trying to create a recipe for
http://www.heavens-above.com, excellent Astronomy website where you can see the predictions of satellite positions, as will be seen from your city.
The problem is that the site offers no feeds.
Nonetheless, I could create something pretty close. I could download some content, but appear as html code, not as text.
This is the recipe as far as it went. The user login is not required to access any of the pages, but if you logger all pages display the information as seen from your city.
Code:
__license__ = 'GPL v3'
__copyright__ = '2010, Lucas Dasso <dassolucas@***********>'
'''
Heavens-Above.com
'''
from calibre.web.feeds.news import BasicNewsRecipe
class HeavensAbove(BasicNewsRecipe):
title = u'Heavens Above'
description = 'Satellite, ISS, and Space Shuttle orbital pass predictions, maps, and star charts.'
__author__ = ' Lucas Dasso'
language = 'en'
remove_javascript=True
# needs_subscription = True
feeds = [(u'ISS', u'http://www.heavens-above.com/PassSummary.aspx?satid=25544&Session=kebgfefchfldhfpnimillnlb')
,(u'X-37B',u'http://www.heavens-above.com/PassSummary.aspx?satid=36514&Session=kebgfefchfldhfpnimillnlb')
,(u'Genesis I',u'http://www.heavens-above.com/PassSummary.aspx?satid=29252&Session=kebgfefchfldhfpnimillnlb')
,(u'GENESIS II',u'http://www.heavens-above.com/PassSummary.aspx?satid=31789&Session=kebgfefchfldhfpnimillnlb')
,(u'Envisat',u'http://www.heavens-above.com/PassSummary.aspx?satid=27386&Session=kebgfefchfldhfpnimillnlb')
,(u'Hubble Space Telescope',u'http://www.heavens-above.com/PassSummary.asp?satid=20580&Session=kebgfefchfldhfpnimillnlb')
,(u'Satellites brighter than magnitude 3.5 (daily)',u'http://www.heavens-above.com/allsats.asp?Mag=3.5&Session=kebgfefchfldhfpnimillnlb')
,(u'Iridium Flares (next 7 days)',u'http://www.heavens-above.com/iridium.asp?Dur=7&Session=kebgfefchfldhfpnimillnlb')
]
# def get_browser(self):
# br = BasicNewsRecipe.get_browser()
# if self.username is not None and self.password is not None:
# br.open('http://www.heavens-above.com/logon.asp')
# br.select_form(nr = 0)
# br['UserName'] = self.username
# br['Password'] = self.password
# br.submit()
# return br