Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "feed", Short: "Download feed media", Example: "goinsta timeline feed", Run: func(cmd *cobra.Command, args []string) { cmd = cmd.Root() output, err := cmd.Flags().GetString("output") if err != nil || output == "" { output = "./timeline/feed/" } inst := utils.New() media := inst.Timeline.Get() fmt.Println("Downloading your timeline feed") for media.Next() { if max <= 0 { break } max-- pgb := pb.StartNew(len(media.Items)) for _, item := range media.Items { _, _, err := item.Download(output, "") if err != nil { fmt.Println(err) } pgb.Add(1) } pgb.Finish() } }, }
RootCmd is used as a command line interaction with Instagram Timeline Feed.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.