Created
October 8, 2017 21:30
-
-
Save PandaTheSlayer/779abaf317e8f90f82289d31fa01f9a8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $opts = array( | |
| 'type' => 'post', | |
| 'owner_id' => '-25240087', | |
| 'item_id' => '404328', | |
| 'friends_only' => '0', | |
| 'offset' => '2700', | |
| 'count' => '400' | |
| ); | |
| $opts = http_build_query($opts); | |
| $res = file_get_contents('https://api.vk.com/method/likes.getList?'.$opts); | |
| $result = json_decode($res, true); | |
| $uids = $result['response']['users']; | |
| print "<pre>"; | |
| printGirls($uids); | |
| print "</pre>"; | |
| function printGirls($uids){ | |
| foreach ($uids as $uid){ | |
| $res = file_get_contents('https://api.vk.com/method/users.get?user_ids=' . $uid ."&fields=city,sex"); | |
| $resArr = json_decode($res, true); | |
| $userData = $resArr['response'][0]; | |
| if($userData['sex'] == 1 && $userData['city'] == 292){ | |
| print_r($userData); | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment