Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $cliend_id = "6906842";
- $country_id = 1; // Россия
- $city_id = 153; // Хабаровск
- // $response = file_get_contents("https://oauth.vk.com/authorize?client_id={$id}&display=page&redirect_uri=https://oauth.vk.com/blank.html&scope=friends,groups&response_type=token&v=5.52");
- $access_token = "ea0f701a24229dd526bb05ca9d7229bb29ae3db897931c1fd80d3977b90ad852190bb95fc59a759f48074";
- $fields = [
- // 'photo_id',
- // 'verified',
- 'sex',
- 'bdate',
- 'city',
- 'country',
- // 'home_town',
- // 'has_photo',
- // 'photo_50',
- // 'photo_100',
- // 'photo_200_orig',
- // 'photo_200',
- // 'photo_400_orig',
- // 'photo_max',
- // 'photo_max_orig',
- // 'online',
- /*
- 'lists',
- 'domain',
- 'has_mobile',
- 'contacts',
- 'site',
- 'education',
- 'universities',
- 'schools',
- 'status',
- 'last_seen',
- 'followers_count',
- 'common_count',
- 'occupation',
- 'nickname',
- 'relatives',
- 'relation',
- 'personal',
- 'connections',
- 'exports',
- 'wall_comments',
- 'activities',
- 'interests',
- 'music',
- 'movies',
- 'tv',
- 'books',
- 'games',
- 'about',
- 'quotes',
- 'can_post',
- 'can_see_all_posts',
- 'can_see_audio',
- 'can_write_private_message',
- 'can_send_friend_request',
- 'is_favorite',
- 'is_hidden_from_feed',
- 'timezone',
- 'screen_name',
- 'maiden_name',
- 'crop_photo',
- 'is_friend',
- 'friend_status',
- 'career',
- 'military',
- 'blacklisted',
- 'blacklisted_by_me'
- */
- ];
- $fields = implode(',', $fields);
- $id = 1;
- $age = 18;
- $array = [];
- while ($id < 30) {
- // $query = file_get_contents("https://api.vk.com/method/users.search?sort=0&offset=0&count=1000&country={$country_id}&city={$city_id}&age_from={$age}&age_to={$age}&q=&fields={$fields}&access_token=" . $access_token . "&v=5.92");
- $query = file_get_contents("https://api.vk.com/method/users.get?&user_ids={$id}&fields={$fields}&access_token=" . $access_token . "&v=5.92");
- $query = json_decode($query, true);
- $array[] = $query['response'];
- $id++;
- sleep(2);
- }
- $a = 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement