项目作者: Dayakargoud

项目描述 :
A Android library for saving of Insta Posts.
高级语言: Kotlin
项目地址: git://github.com/Dayakargoud/InstaSaver.git
创建时间: 2021-02-08T14:05:46Z
项目社区:https://github.com/Dayakargoud/InstaSaver

开源协议:

下载


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

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

Let’s Download the Posts!

Download videos and posts

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

I want to download captions

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

InstaSaver now is using Kotlin coroutines!

Calling InstaSaver should be done from coroutines scope

  1. // e.g calling from activity lifecycle scope
  2. lifecycleScope.launch {
  3. val post=InstaSaver.getInstaPost(url)
  4. }
  5. // calling from global scope
  6. GlobalScope.launch {
  7. val post=InstaSaver.getInstaPost(url)
  8. }

`

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

  1. 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.