Updated comic modules

Bug #482040 reported by NTICompass
20
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Dosage
Fix Committed
Low
Tristan Seligmann

Bug Description

I have updated the comic modules for Snafu-Comics, VGCats, and Ctrl-Alt-Del.

I have attached the comic sections from the s.py, c.py, and v.py files.

Related branches

Revision history for this message
NTICompass (nticompass) wrote :

<empty comment>

Revision history for this message
NTICompass (nticompass) wrote :

New Snafu-Comics update

Revision history for this message
NTICompass (nticompass) wrote :

<empty comment>

Revision history for this message
NTICompass (nticompass) wrote :

<empty comment>

Revision history for this message
NTICompass (nticompass) wrote :

class AbstruseGoose(BasicScraper):
    latestUrl = 'http://abstrusegoose.com/'
    imageUrl = 'http://www.abstractgender.com/%s'
    imageSearch = compile(r'<img class="aligncenter" src="http://abstrusegoose.com/strips/\w+.JPG"')
    prevSearch = compile(r'<a href = "http://abstrusegoose.com/\d+">&laquo; Previous</a>')
    help = 'Index format: n (unpadded)'

Here is AbstruseGoose
(A new Comic)

Revision history for this message
NTICompass (nticompass) wrote :

Replying to [comment:2 NTICompass]:
> class AbstruseGoose(BasicScraper):
> latestUrl = 'http://abstrusegoose.com/'
> imageUrl = 'http://www.abstractgender.com/%s'
> imageSearch = compile(r'<img class="aligncenter" src="http://abstrusegoose.com/strips/\w+.JPG"')
> prevSearch = compile(r'<a href = "http://abstrusegoose.com/\d+">&laquo; Previous</a>')
> help = 'Index format: n (unpadded)'
>
> Here is AbstruseGoose
> (A new Comic)

That's not working.... Someone wanna help me?

Revision history for this message
NTICompass (nticompass) wrote :

class AbstruseGoose(BasicScraper):
    latestUrl = 'http://abstrusegoose.com/'
    imageSearch = compile(r'<img[^<]+src="(http://abstrusegoose.com/strips/[^<>"]+)"')
    prevSearch = compile(r'<a href = "(http://abstrusegoose.com/\d+)">&laquo; Previous</a>')
    help = 'Index format: n (unpadded)'

FIXED IT!

(Forgot the ('s)

Revision history for this message
NTICompass (nticompass) wrote :

class AbstruseGoose(BasicScraper):
    starter = bounceStarter('http://abstrusegoose.com/',
        compile(r'<a href = "(http://abstrusegoose.com/\d+)">Next &raquo;</a>'))
    imageUrl = 'http://abstrusegoose.com/c%s.html'
    imageSearch = compile(r'<img[^<]+src="(http://abstrusegoose.com/strips/[^<>"]+)"')
    prevSearch = compile(r'<a href = "(http://abstrusegoose.com/\d+)">&laquo; Previous</a>')
    help = 'Index format: n (unpadded)'

    def namer(cls, imageUrl, pageUrl):
        index = int(pageUrl.rstrip('/').split('/')[-1])
        name = imageUrl.split('/')[-1].split('.')[0]
        return 'c%03d-%s' % (index, name)

Slightly Improved

Changed in dosage:
assignee: Seth Bodine (thepilgrim) → Tristan Seligmann (mithrandi)
importance: Unknown → Low
milestone: none → 1.7.0
Changed in dosage:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.