Insta Utils is a Insta post downloader for Android applications written in Java.
Check CHANGELOG for new features and updates
Insta Utils uses a number of open source libraries to work properly:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
implementation 'com.github.SanjayDevTech:instautils:<latest_version>'
Check Releases for Latest version
InstaDownloader downloader = new InstaDownloader(this, new InstaResponse() {
@Override
public void onResponse(@NotNull InstaTask instaTask) {
// Retrieve post instance from InstaTask
InstaPost instaPost = instaTask.getInstaPost();
if (instaPost != null) {
// InstaPost has something in it
// Log the direct url
Log.d(TAG, instaPost.getUrl());
// set the post object to ImageView
downloader.setImage(instaPost, displayImageView);
// Log the type (0 => Image, 1 => Video or 2 => Profile)
Log.d(TAG, "Type: " + instaPost.getType());
} else {
// Log the error
instaTask.getException().printStackTrace();
}
}
});
String instaProfileUrl = "https://instagram.com/SanjayDevTech";
downloader.getDP(instaProfileUrl);
String instaPostUrl = "https://www.instagram.com/p/post_id/";
downloader.get(instaPostUrl);
MIT