Scrython/scrython/cards/collector.py

10 lines
322 B
Python
Raw Normal View History

from .cards_object import CardsObject
class Collector(CardsObject):
def __init__(self, **kwargs):
2018-02-13 21:51:03 +00:00
if kwargs.get('code') is None:
raise TypeError('No code provided to search by')
2018-02-14 02:02:48 +00:00
self.url = 'cards/{}/{}?'.format(kwargs.get('code'), str(kwargs.get('collector_number')))
super(Collector, self).__init__(self.url)