postaddictme/instagram-java-scraper

Most of Account fields are null

twalther72 opened this issue · 5 comments

If I am scraping media with the code currently in the master then most of the fields related to account are null like:

"fullName" : null,
"isPrivate" : null,
"isVerified" : null,
"biography" : null,
"externalUrl" : null,
"followedBy" : null,
"follows" : null,
"blockedByViewer" : null,
"countryBlock" : null,
"externalUrlLinkshimmed" : null,
"followedByViewer" : null,
"followsViewer" : null,
"hasBlockedViewer" : null,
"hasRequestedViewer" : null,
"profilePicUrl" : null,
"profilePicUrlHd" : null,
"requestedByViewer" : null,
"connectedFbPage" : null,
"isUnpublished" : null,
"media" : null,

Is this a local problem or does someone else has the same issue?

could you please provide more context information: API method that return this "null" fields?

it is in

public abstract class PaginatedRequest<R, P extends RequestParameter>

public R requestInstagramResult(P requestParameters, int pageCount, PageInfo pageCursor) throws IOException

the ModelMapper has the values but mapAccount delivers correct Account object with data. But then data get somewhere lost.

@twalther72 you provide internal API, what is public API method of me.postaddict.instagram.scraper.Instagram?

yes, me.postaddict.instagram.scraper.Instagram

public PageObject getMedias(String username, int pageCount) throws IOException {

@twalther72 it is not an issue. instagram-java-scraper use common object model and fill fields with data from json response. You can search for "owner" field value in getMedias response as example. Only ID owner field is available.

You can request getAccountByUsername/getAccountById to get more details about account.