Documentation
¶
Index ¶
- Variables
- type InstaService
- func (insta *InstaService) ExtractInstagramData(doc *goquery.Document) InstagramData
- func (insta *InstaService) GetInfo(url string) (InstagramData, error)
- func (i *InstaService) GetProvider(name string) (Provider, error)
- func (insta *InstaService) ParseMetaDescription(descText string, data *InstagramData)
- func (i *InstaService) Stream(url string) (providers.InstaStreamResult, error)
- type InstagramData
- type Provider
Constants ¶
This section is empty.
Variables ¶
View Source
var ( InstagramURLPattern = regexp.MustCompile(`^https?://(?:www\.)?instagram\.com/(?:p|reel|stories)/[a-zA-Z0-9_-]+`) LikesRegex = regexp.MustCompile(`^([0-9Kk\.,]+) likes`) CommentsRegex = regexp.MustCompile(`,\s*([0-9Kk\.,]+)\s*comments`) UserRegex = regexp.MustCompile(`-\s*(.*?)\s*on`) DateRegex = regexp.MustCompile(`on\s(.*?):`) CaptionRegex = regexp.MustCompile(`:\s*"(.*)"`) )
Functions ¶
This section is empty.
Types ¶
type InstaService ¶
type InstaService struct {
Client *http.Client
Providers []Provider
FastVideoSave Provider
TheSocialCat Provider
}
func NewInsta ¶
func NewInsta(client *http.Client) *InstaService
func (*InstaService) ExtractInstagramData ¶
func (insta *InstaService) ExtractInstagramData(doc *goquery.Document) InstagramData
func (*InstaService) GetInfo ¶
func (insta *InstaService) GetInfo(url string) (InstagramData, error)
func (*InstaService) GetProvider ¶
func (i *InstaService) GetProvider(name string) (Provider, error)
func (*InstaService) ParseMetaDescription ¶
func (insta *InstaService) ParseMetaDescription(descText string, data *InstagramData)
func (*InstaService) Stream ¶
func (i *InstaService) Stream(url string) (providers.InstaStreamResult, error)
type InstagramData ¶
Click to show internal directories.
Click to hide internal directories.