royfrancis / iscrape

A basic web scrapper for Instagram
MIT License
13 stars 3 forks source link

Did Instagram change its API? #3

Open jeremy-koster opened 2 years ago

jeremy-koster commented 2 years ago

Formerly, I had the tutorial script up and running, but now it returns errors:

get_page_info(c("instagram","travelandleisure","minimalism")) username posts followers following 1 instagram NA NA NA 2 travelandleisure NA NA NA 3 minimalism NA NA NA Warning messages: 1: In get_count_post(pu) : Userpage did not return a post count. Instagram format may have changed. 2: In get_count_follower(pu) : Userpage did not return a follower count. Instagram format may have changed. 3: In get_count_following(pu) : Userpage did not return a following count. Instagram format may have changed.

It makes one wonder if Instagram closed up shop after the bad week that Facebook has had (?).

royfrancis commented 2 years ago

This R package doesn't use the Instagram API. It just scrapes the HTML page. It doesn't work reliably. I have noticed that it works sometimes and sometimes it doesn't. I think, to be reliable, the code needs to be rewritten to go through the API as an authenticated user.