mohammedjameel24 / InstaSaver

An Android library for saving of Instagram Posts.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

InstaSaver

InstaSaver is a simple and powerful kotlin library for saving of Instagram Posts and Reels. InstaSaver will allow you to save videos, Images, IGTV and Reels with single click.

Gradle

dependencies {
    implementation 'com.github.dayakar:InstaSaver:1.0.3'
}

Let's Download the Posts!

Download videos and posts

 val post=InstaSaver.getInstaPost(url)
 val downloadUrls=post.downloadLinks

I want to download captions

val post=InstaSaver.getInstaPost(url)
val caption=post.caption

InstaSaver now is using Kotlin coroutines!

Calling InstaSaver should be done from coroutines scope

// e.g calling from activity lifecycle scope
lifecycleScope.launch {
   val post=InstaSaver.getInstaPost(url)
}

// calling from global scope
GlobalScope.launch {
   val post=InstaSaver.getInstaPost(url)
}

`

License

Copyright (c) 2021 Dayakar.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

 http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

An Android library for saving of Instagram Posts.


Languages

Language:Kotlin 100.0%