Search in sources :

Example 1 with TagName

use of me.postaddict.instagram.scraper.request.parameters.TagName in project instagram-java-scraper by postaddictme.

the class Instagram method getMediasByTag.

public Tag getMediasByTag(String tag, int pageCount) throws IOException {
    validateTagName(tag);
    GetMediaByTagRequest getMediaByTagRequest = new GetMediaByTagRequest(httpClient, mapper, delayHandler);
    return getMediaByTagRequest.requestInstagramResult(new TagName(tag), pageCount, FIRST_PAGE);
}
Also used : GetMediaByTagRequest(me.postaddict.instagram.scraper.request.GetMediaByTagRequest) TagName(me.postaddict.instagram.scraper.request.parameters.TagName)

Aggregations

GetMediaByTagRequest (me.postaddict.instagram.scraper.request.GetMediaByTagRequest)1 TagName (me.postaddict.instagram.scraper.request.parameters.TagName)1