how can i collect data set from social networks like instagram?
I am not aware about Instagram, or if there is a ready-to-use dataset for your purposes, but in general in order to get data from (almost) any online source you should a method called "web scraping" (This might help you while you google).

It might also be useful to you, if you decide what kind of tools you are going to use for your analysis.

I have tried something simple, but it was for Twitter though

Here is a rather simple piece of code that gets twitter 500 tweets concerning Barbie using R

require(twitteR)

setwd("C:/Users/slin/desktop/informatie")

ck &lt;- "4bKJU1Z4B60SzbPPIva7OknnQ"
cs &lt;- "cCxAPYDN3d0APvlurEBoXMNCKl0DKgrneV0w6KQCQenNpmM7fa"
at &lt;- "715872051559575552-qMYaugTPHJeRg9fh70ABNWCjdl0Lp6T"
as &lt;- "zxn6lOyCw2dcPyllkiHJq4zk0wHwGQ4tuKa9IpR96TNvO"

setup_twitter_oauth(ck, cs, access_token = at, access_secret = as)

t_stream &lt;- searchTwitter('barbie', resultType="recent", n=500)

df &lt;- do.call("rbind", lapply(t_stream, as.data.frame))


The ck, cs, at and as can be obtained as it is explained here in step 2

Also in that site you can see a guide of how to web scrap data from Twitter using Python. 

You might also find useful this (Python), this (Python) and this (R)