Fixed ASofterWorld
This commit is contained in:
parent
49b964cb3c
commit
8f3a9f660a
1 changed files with 5 additions and 5 deletions
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
from re import compile, escape, MULTILINE
|
from re import compile, escape, MULTILINE
|
||||||
from ..util import tagre
|
from ..util import tagre
|
||||||
from ..scraper import _BasicScraper
|
from ..scraper import _BasicScraper, _ParserScraper
|
||||||
from ..helpers import regexNamer, bounceStarter, indirectStarter
|
from ..helpers import regexNamer, bounceStarter, indirectStarter
|
||||||
|
|
||||||
|
|
||||||
|
@ -304,16 +304,16 @@ class ARedTailsDream(_BasicScraper):
|
||||||
help = 'Index format: nn'
|
help = 'Index format: nn'
|
||||||
|
|
||||||
|
|
||||||
class ASofterWorld(_BasicScraper):
|
class ASofterWorld(_ParserScraper):
|
||||||
url = 'http://www.asofterworld.com/'
|
url = 'http://www.asofterworld.com/'
|
||||||
stripUrl = url + 'index.php?id=%s'
|
stripUrl = url + 'index.php?id=%s'
|
||||||
firstStripUrl = stripUrl % '1'
|
firstStripUrl = stripUrl % '1'
|
||||||
imageSearch = compile(tagre("p", "id", "thecomic") + r'\s*' +
|
imageSearch = '//div[@id="comicimg"]//img'
|
||||||
tagre("img", "src", r'(http://www\.asofterworld\.com/clean/[^"]+)'))
|
prevSearch = '//div[@id="previous"]/a'
|
||||||
prevSearch = compile(tagre("a", "href", "(index\.php\?id=\d+)")+'< back')
|
|
||||||
help = 'Index format: n (unpadded)'
|
help = 'Index format: n (unpadded)'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class AstronomyPOTD(_BasicScraper):
|
class AstronomyPOTD(_BasicScraper):
|
||||||
description = u'A different astronomy and space science related image is featured each day, along with a brief explanation.'
|
description = u'A different astronomy and space science related image is featured each day, along with a brief explanation.'
|
||||||
baseUrl = 'http://antwrp.gsfc.nasa.gov/apod/'
|
baseUrl = 'http://antwrp.gsfc.nasa.gov/apod/'
|
||||||
|
|
Loading…
Reference in a new issue