Fix AstronomyPOTD
This commit is contained in:
parent
725001155a
commit
292c58633c
1 changed files with 7 additions and 4 deletions
|
@ -141,12 +141,15 @@ class Achewood(_BasicScraper):
|
|||
class AstronomyPOTD(_BasicScraper):
|
||||
url = 'http://antwrp.gsfc.nasa.gov/apod/astropix.html'
|
||||
starter = bounceStarter(url,
|
||||
compile(r'<a href="(ap\d{6}\.html)">></a>'))
|
||||
compile(tagre("a", "href", r'(ap\d{6}\.html)') + "></a>"))
|
||||
stripUrl = 'http://antwrp.gsfc.nasa.gov/apod/ap%s.html'
|
||||
imageSearch = compile(r'<a href="(image/\d{4}/[^"]+)"')
|
||||
imageSearch = compile(tagre("a", "href", r'(image/\d{4}/[^"]+)'))
|
||||
multipleImagesPerStrip = True
|
||||
noImageUrls = set(['http://antwrp.gsfc.nasa.gov/apod/ap130218.html'])
|
||||
prevSearch = compile(r'<a href="(ap\d{6}\.html)"><</a>')
|
||||
noImageUrls = set([
|
||||
'http://antwrp.gsfc.nasa.gov/apod/ap130217.html', # video
|
||||
'http://antwrp.gsfc.nasa.gov/apod/ap130218.html', # video
|
||||
])
|
||||
prevSearch = compile(tagre("a", "href", r'(ap\d{6}\.html)') + "<</a>")
|
||||
help = 'Index format: yymmdd'
|
||||
|
||||
@classmethod
|
||||
|
|
Loading…
Reference in a new issue