MCPcopy Create free account
hub / github.com/comaps/comaps / __init__

Method __init__

tools/python/opentable_restaurants.py:25–33  ·  view source on GitHub ↗
(self, login, password, opentable_filename, tsv_filename=None)

Source from the content-addressed store, hash-verified

23
24class OpentableDownloader(object):
25 def __init__(self, login, password, opentable_filename, tsv_filename=None):
26 self.login = login
27 self.password = password
28 self.token = None
29 self.opentable_filename = opentable_filename
30 self.tsv_filename = tsv_filename
31
32 # TODO(mgsergio): Check if token is actual in functions.
33 self._get_token()
34
35 def download(self):
36 headers = self._add_auth_header({'Content-Type': 'application/json'})

Callers

nothing calls this directly

Calls 1

_get_tokenMethod · 0.95

Tested by

no test coverage detected