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):
|
class AstronomyPOTD(_BasicScraper):
|
||||||
url = 'http://antwrp.gsfc.nasa.gov/apod/astropix.html'
|
url = 'http://antwrp.gsfc.nasa.gov/apod/astropix.html'
|
||||||
starter = bounceStarter(url,
|
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'
|
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
|
multipleImagesPerStrip = True
|
||||||
noImageUrls = set(['http://antwrp.gsfc.nasa.gov/apod/ap130218.html'])
|
noImageUrls = set([
|
||||||
prevSearch = compile(r'<a href="(ap\d{6}\.html)"><</a>')
|
'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'
|
help = 'Index format: yymmdd'
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|
Loading…
Reference in a new issue