正在显示
1 个修改的文件
包含
8 行增加
和
0 行删除
| @@ -654,6 +654,14 @@ class FacebookClient(Client): | @@ -654,6 +654,14 @@ class FacebookClient(Client): | ||
| 654 | res = self._payload_get(url, {}) | 654 | res = self._payload_get(url, {}) |
| 655 | return res | 655 | return res |
| 656 | 656 | ||
| 657 | + def searchForCollege(self, name): | ||
| 658 | + '''搜索学校''' | ||
| 659 | + data = {'value': name, 'existing_ids': '', 'category': '2602', 'context': 'hub_college', 'filter[0]': 'page', | ||
| 660 | + 'section': '2004', 'services_mask': '1', 'viewer': self.uid} | ||
| 661 | + url = furl.furl("https://www.facebook.com/ajax/typeahead/search.php").add(data).url | ||
| 662 | + res = self._payload_get(url, {}) | ||
| 663 | + return res | ||
| 664 | + | ||
| 657 | def searchForPosition(self, name): | 665 | def searchForPosition(self, name): |
| 658 | '''搜索职位''' | 666 | '''搜索职位''' |
| 659 | data = {'value': name, 'existing_ids': '', 'category': '2611', 'context': 'hub_work_position', | 667 | data = {'value': name, 'existing_ids': '', 'category': '2611', 'context': 'hub_work_position', |
-
请 注册 或 登录 后发表评论