diff --git a/lib/facebook.py b/lib/facebook.py index e322f19..a9dddf0 100644 --- a/lib/facebook.py +++ b/lib/facebook.py @@ -654,6 +654,14 @@ class FacebookClient(Client): res = self._payload_get(url, {}) return res + def searchForCollege(self, name): + '''搜索学校''' + data = {'value': name, 'existing_ids': '', 'category': '2602', 'context': 'hub_college', 'filter[0]': 'page', + 'section': '2004', 'services_mask': '1', 'viewer': self.uid} + url = furl.furl("https://www.facebook.com/ajax/typeahead/search.php").add(data).url + res = self._payload_get(url, {}) + return res + def searchForPosition(self, name): '''搜索职位''' data = {'value': name, 'existing_ids': '', 'category': '2611', 'context': 'hub_work_position',