from comics.aggregator.crawler import CrawlerBase, CrawlerImage
from comics.core.comic_data import ComicDataBase


class ComicData(ComicDataBase):
    name = 'Wulffmorgenthaler (vg.no)'
    language = 'no'
    url = 'http://heltnormalt.no/wumo'
    rights = 'Mikael Wulff & Anders Morgenthaler'


class Crawler(CrawlerBase):
    history_capable_date = '2013-01-26'
    schedule = 'Mo,Tu,We,Th,Fr,Sa,Su'
    time_zone = 'Europe/Oslo'

    def crawl(self, pub_date):
        url = 'http://heltnormalt.no/img/wumo/%s.jpg' % (
            pub_date.strftime('%Y/%m/%d'))
        return CrawlerImage(url)

from comics.aggregator.crawler import CrawlerBase, CrawlerImage
from comics.core.comic_data import ComicDataBase


class ComicData(ComicDataBase):
    name = 'Wumo (vg.no)'
    language = 'no'
    url = 'http://heltnormalt.no/wumo'
    rights = 'Mikael Wulff & Anders Morgenthaler'


class Crawler(CrawlerBase):
    history_capable_date = '2013-01-26'
    schedule = 'Mo,Tu,We,Th,Fr,Sa,Su'
    time_zone = 'Europe/Oslo'

    def crawl(self, pub_date):
        url = 'http://heltnormalt.no/img/wumo/%s.jpg' % (
            pub_date.strftime('%Y/%m/%d'))
        return CrawlerImage(url)

Update title of 'Wumo' crawlers, part two
Update title of 'Wumo' crawlers, part two

  from comics.aggregator.crawler import CrawlerBase, CrawlerImage
  from comics.core.comic_data import ComicDataBase
  
  
  class ComicData(ComicDataBase):
-     name = 'Wulffmorgenthaler (vg.no)'
+     name = 'Wumo (vg.no)'
      language = 'no'
      url = 'http://heltnormalt.no/wumo'
      rights = 'Mikael Wulff & Anders Morgenthaler'
  
  
  class Crawler(CrawlerBase):
      history_capable_date = '2013-01-26'
      schedule = 'Mo,Tu,We,Th,Fr,Sa,Su'
      time_zone = 'Europe/Oslo'
  
      def crawl(self, pub_date):
          url = 'http://heltnormalt.no/img/wumo/%s.jpg' % (
              pub_date.strftime('%Y/%m/%d'))
          return CrawlerImage(url)
  
Update title of 'Wumo' crawlers, part two
## Code Before:
from comics.aggregator.crawler import CrawlerBase, CrawlerImage
from comics.core.comic_data import ComicDataBase


class ComicData(ComicDataBase):
    name = 'Wulffmorgenthaler (vg.no)'
    language = 'no'
    url = 'http://heltnormalt.no/wumo'
    rights = 'Mikael Wulff & Anders Morgenthaler'


class Crawler(CrawlerBase):
    history_capable_date = '2013-01-26'
    schedule = 'Mo,Tu,We,Th,Fr,Sa,Su'
    time_zone = 'Europe/Oslo'

    def crawl(self, pub_date):
        url = 'http://heltnormalt.no/img/wumo/%s.jpg' % (
            pub_date.strftime('%Y/%m/%d'))
        return CrawlerImage(url)

## Instruction:
Update title of 'Wumo' crawlers, part two
## Code After:
from comics.aggregator.crawler import CrawlerBase, CrawlerImage
from comics.core.comic_data import ComicDataBase


class ComicData(ComicDataBase):
    name = 'Wumo (vg.no)'
    language = 'no'
    url = 'http://heltnormalt.no/wumo'
    rights = 'Mikael Wulff & Anders Morgenthaler'


class Crawler(CrawlerBase):
    history_capable_date = '2013-01-26'
    schedule = 'Mo,Tu,We,Th,Fr,Sa,Su'
    time_zone = 'Europe/Oslo'

    def crawl(self, pub_date):
        url = 'http://heltnormalt.no/img/wumo/%s.jpg' % (
            pub_date.strftime('%Y/%m/%d'))
        return CrawlerImage(url)
