def getMatches(self): matchesURL = "https://api.gotinder.com/updates" result = self.session.post(matchesURL, headers=self.headers, proxies=None) result = result.json() matches = result["matches"] people = [] for match in matches: if "person" in match: person = Person(match["person"]) personInformationURL = "https://api.gotinder.com/user/" + person.personID personResult = self.session.get(personInformationURL, headers=self.headers, proxies=None).json() personResult = personResult["results"] person = Person(personResult) people.append(person) print(person.name + "\t" + person.getSchools())