ig-giveaway is a cli tool to do giveaways based on comments in an Instagram post
go install github.com/o-mago/ig-giveaway@latest
or
Download one of the assets from the releases
or
Build from source
ig-giveaway
The options are:
Instagram user name: username to whom the post belongs toInstagram post code: code from the post (can be retrieved in the post web URL)Graph API Token: access token generated using the Graph Api ExplorerNumber of mentions: minimum number of mentions the user must comment to be a contenderNumber of winners: number of winner drawsBlocklist: users that will not be winnersMultiple entries per user: if true, allows user to have 1 entry per X mentionsShow all contenders animation: if true, show all contenders and rotate focus between them
The Instagram's post code can be found in the path parameter of the url. E.g. https://www.instagram.com/p/C2unenNseJB/

To use the tool, you must create a meta developer account and an app with the Instagram's Graph API access: https://developers.facebook.com/apps/creation
Using the Graph Api Explorer, you must add these scopes: pages_show_list,instagram_basic,pages_read_engagement and click Generate Access Token.
Use this token for the ig-giveaway

