Documentation
¶
Overview ¶
Package igstorydl helps you download Instagram stories.
Index ¶
- func AddTitleInPath(p, title string) string
- func BuildOutputFilePath(username, url string, timestamp int64) string
- func CreateDirIfNotExist(dir string) (err error)
- func DownloadAll()
- func DownloadHighlight(ds_user_id, sessionid, csrftoken string)
- func DownloadIGUser(user igstory.IGUser, isHighlight bool)
- func DownloadUnread()
- func FileExt(url string) string
- func FormatTimestamp(timestamp int64) string
- func MonitorAndDownload(userid, sessionid, csrftoken string)
- func PrintDownloadInfo(username, url, filepath string, timestamp int64)
- func StripQueryString(inputUrl string) string
- func Wget(url, filepath string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddTitleInPath ¶
stories/username/username-2018-02-10T23:16:49+08:00-1518275809.mp4 becomes stories/username/title/username-2018-02-10T23:16:49+08:00-1518275809.mp4
func BuildOutputFilePath ¶
Default output folder: stories/
TODO: should allow to change output folder.
func CreateDirIfNotExist ¶
Given folder path, create the folder if the folder does not exist.
func DownloadHighlight ¶
func DownloadHighlight(ds_user_id, sessionid, csrftoken string)
Download highlight stories of following users.
func DownloadUnread ¶
func DownloadUnread()
Download unexpired stories of users with unread stories.