Scrython/scrython/cards/mtgo.py

11 lines
296 B
Python
Raw Normal View History

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