insta_likes_scraper

package
v0.0.0-...-ae3587a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2020 License: LGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InstaPostLikes

type InstaPostLikes struct {
	Data struct {
		ShortcodeMedia struct {
			ID          string `json:"id"`
			Shortcode   string `json:"shortcode"`
			EdgeLikedBy struct {
				Count    int `json:"count"`
				PageInfo struct {
					HasNextPage bool   `json:"has_next_page"`
					EndCursor   string `json:"end_cursor"`
				} `json:"page_info"`
				Edges []struct {
					Node struct {
						ID                string `json:"id"`
						Username          string `json:"username"`
						FullName          string `json:"full_name"`
						ProfilePicURL     string `json:"profile_pic_url"`
						IsPrivate         bool   `json:"is_private"`
						IsVerified        bool   `json:"is_verified"`
						FollowedByViewer  bool   `json:"followed_by_viewer"`
						RequestedByViewer bool   `json:"requested_by_viewer"`
						Reel              struct {
							ID              string      `json:"id"`
							ExpiringAt      int         `json:"expiring_at"`
							HasPrideMedia   bool        `json:"has_pride_media"`
							LatestReelMedia interface{} `json:"latest_reel_media"`
							Seen            interface{} `json:"seen"`
							Owner           struct {
								Typename      string `json:"__typename"`
								ID            string `json:"id"`
								ProfilePicURL string `json:"profile_pic_url"`
								Username      string `json:"username"`
							} `json:"owner"`
						} `json:"reel"`
					} `json:"node"`
				} `json:"edges"`
			} `json:"edge_liked_by"`
		} `json:"shortcode_media"`
	} `json:"data"`
	Status string `json:"status"`
}

type PostLikesScraper

type PostLikesScraper struct {
	*worker.Worker

	LikesLimit int
	// contains filtered or unexported fields
}

PostLikesScraper scrapes the likes

func New

func New(config *client.ScraperConfig, awsServiceAddress string, postIDQReader *kafka.Reader, likesInfoQWriter *kafka.Writer, errQWriter *kafka.Writer, likesLimit int) *PostLikesScraper

New returns an initialized PostLikesScraper

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL