postaddictme / instagram-php-scraper

Get account information, photos, videos, stories and comments.
https://packagist.org/packages/raiym/instagram-php-scraper
MIT License
3.09k stars 800 forks source link

getLastLikesByCodeLink - does it work? #56

Closed ganego closed 7 years ago

ganego commented 7 years ago

Hi, I'm doing some IG scraping in python and came across your project here, I have a question regarding "getLastLikesByCodeLink". Does it work for you? I don't want to set up a php server to test, but I tested in Firefox (see below).

EDIT: To fix your code remove the id after nodes{.

It uses a shortcode, for example "BOrcVwohLka" and then invokes ig_shortcode(BOrcVwohLka){likes{nodes{id,user{id,profile_pic_url,username,follows{count},followed_by{count},biography,full_name,media{count},is_private,external_url,is_verified}},page_info}}

You can test this in your browser with POST requests on their site, this works for example fine for what getAccountJsonInfoLinkByAccountId does, but for getLastLikesByCodeLink I get an error "400 - invalid query" back.

If your code does not work, you can get the last 10 likes from getMediaJsonLink.

In the IG app I can get all likes for a pic (more than 10), does anybody know if this is somehow possible without API access?

upphsa commented 7 years ago

Hi, If you give your Skype address or WhatsApp number, we can discuss it in detail. If you do not want us to sell the system size or use it as a barter.


Gönderen: ganego notifications@github.com Gönderildi: 31 Aralık 2016 Cumartesi 22:28:03 Kime: postaddictme/instagram-php-scraper Bilgi: Subscribed Konu: [postaddictme/instagram-php-scraper] getLastLikesByCodeLink - does it work? (#56)

Hi, I'm doing some IG scraping in python and came across your project here, I have a question regarding "getLastLikesByCodeLink". Does it work for you? I don't want to set up a php server to test, but I tested in Firefox (see below).

It uses a shortcode, for example "BOrcVwohLka" and then invokes ig_shortcode(BOrcVwohLka){likes{nodes{id,user{id,profile_pic_url,username,follows{count},followed_by{count},biography,full_name,media{count},is_private,external_url,is_verified}},page_info}}

You can test this in your browser with POST requests on their site, this works for example fine for what getAccountJsonInfoLinkByAccountId does, but for getLastLikesByCodeLink I get an error "400 - invalid query" back.

If your code does not work, you can get the last 10 likes from getMediaJsonLink.

In the IG app I can get all likes for a pic (more than 10), does anybody know if this is somehow possible without API access?

- You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/postaddictme/instagram-php-scraper/issues/56, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AMOs29v4e2wuqpp7r9S53jBiE_lFlRPdks5rNqzDgaJpZM4LYm5W.

raiym commented 7 years ago

Hello @ganego . No it doesn't work for me. With this method I can't get all likes from media.

As I understand we can scrape likes only after auth process.

Take a look at this library: https://github.com/mgp25/Instagram-API It is private instagram api and contains methods to get likes and followers/follows. May be it will help.

@upphsa sorry, didn't understand your post, can you elaborate

upphsa commented 7 years ago

Discussions from Whatsapp or skype


Gönderen: Raiymbek Kapishev notifications@github.com Gönderildi: 1 Ocak 2017 Pazar 14:01:25 Kime: postaddictme/instagram-php-scraper Bilgi: upphsa; Mention Konu: Re: [postaddictme/instagram-php-scraper] getLastLikesByCodeLink - does it work? (#56)

Hello @ganegohttps://github.com/ganego . No it doesn't work for me. With this method I can't get all likes from media.

As I understand we can scrape likes after auth process.

Take a look at this library: https://github.com/mgp25/Instagram-API

May be it will help.

@upphsahttps://github.com/upphsa sorry, didn't understand your post, can you elaborate

- You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/postaddictme/instagram-php-scraper/issues/56#issuecomment-269898902, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AMOs2wBB36QC0_TZ8QZ5erNBag5WFXDbks5rN4eFgaJpZM4LYm5W.