Browse Source

add feature

feature/new_bilibili_and_instagram_sxs20191126
shixuesen 4 years ago
parent
commit
21a5de9458
2 changed files with 4 additions and 3 deletions
  1. +2
    -1
      app/Console/Commands/InstagramScrape.php
  2. +2
    -2
      app/Services/InstagramService.php

+ 2
- 1
app/Console/Commands/InstagramScrape.php View File

@ -50,10 +50,11 @@ class InstagramScrape extends Command
// // $userList = ['1992.ai_']; // // $userList = ['1992.ai_'];
// print_r($userList);exit; // print_r($userList);exit;
$ins = new InstagramService(); $ins = new InstagramService();
// $ins->getUserNameById('4156629214');exit;
$ins->scrapeUsers($start); $ins->scrapeUsers($start);
$ins->scrapeLikedUsers(); $ins->scrapeLikedUsers();
$ins->scrapeCollection();exit; $ins->scrapeCollection();exit;
// $ins->getUserNameById();
$ins->getUserNameById(13049295449);
// $ins->queryFollowUsers(); // $ins->queryFollowUsers();
// $ins->commonRequest(); // $ins->commonRequest();
$ins24 = new Ins24Service(); $ins24 = new Ins24Service();


+ 2
- 2
app/Services/InstagramService.php View File

@ -308,7 +308,7 @@ class InstagramService
try { try {
$userList = file("/Users/shixuesen/OneDrive/Pictures/instagram/user.txt"); $userList = file("/Users/shixuesen/OneDrive/Pictures/instagram/user.txt");
$userList = array_slice($userList, $start, 65);
$userList = array_slice($userList, $start, 50);
// $userList = ['1992.ai_']; // $userList = ['1992.ai_'];
// print_r($userList);exit; // print_r($userList);exit;
// print_r($userList); // print_r($userList);
@ -577,7 +577,7 @@ class InstagramService
exit(0); exit(0);
} }
dump($ig->people->getInfoById('17865689564'));exit;
dump($ig->people->getInfoById($id));exit;
$response = $ig->user->getUserFeed('6794713533', null); $response = $ig->user->getUserFeed('6794713533', null);
// $response = $ig->story->getUserReelMediaFeed('12801506409'); // $response = $ig->story->getUserReelMediaFeed('12801506409');
dump($response);exit; dump($response);exit;


Loading…
Cancel
Save