{"id":681,"date":"2023-01-27T08:10:29","date_gmt":"2023-01-27T08:10:29","guid":{"rendered":"https:\/\/wizardofbots.com\/network\/?p=681"},"modified":"2023-11-25T08:51:04","modified_gmt":"2023-11-25T08:51:04","slug":"python3-script-to-use-instagram-api-to-check-if-people-i-follow-dont-follow-back","status":"publish","type":"post","link":"http:\/\/wizardofbots.com\/network\/python3-script-to-use-instagram-api-to-check-if-people-i-follow-dont-follow-back\/","title":{"rendered":"Python3 script to use Instagram API to check if people I follow don&#8217;t follow back"},"content":{"rendered":"<p>So I am going to start coding my custom script so I can know how to do this properly in order to keep my personal tool for growth, this way I will include AI in this process.<\/p><p>This script is free and works to promote my next private script. If you are interested just subscribe to the Newsletter so I can notify you when I have it in production for a Lifetime price, including SetUp.<\/p><p>Way to go so here is the script:<\/p><div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>import requests\nimport json\n\n# Replace with your own access token\naccess_token = &#39;YOUR_ACCESS_TOKEN&#39;\n\n# Get list of users you follow\nurl = &#39;https:\/\/api.instagram.com\/v1\/users\/self\/follows?access_token=&#39; + access_token\nresponse = requests.get(url)\ndata = json.loads(response.text)\nfollows = data[&quot;data&quot;]\n\n# Get list of users who follow you\nurl = &#39;https:\/\/api.instagram.com\/v1\/users\/self\/followed-by?access_token=&#39; + access_token\nresponse = requests.get(url)\ndata = json.loads(response.text)\nfollowers = data[&#39;data&#39;]\n\n# Create sets for quick comparison\nfollows_set = set([f[&#39;username&#39;] for f in follows])\nfollowers_set = set([f[&#39;username&#39;] for f in followers])\n\n# Find users who don&#39;t follow you back\nnot_following_back = follows_set.difference(followers_set)\n\n# Print the list of users who don&#39;t follow you back\nprint(not_following_back)<\/code><\/pre><\/div><p>BTW the image Feature Image is from the Crazy MidJourney<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/wizardofbots.com\/network\/wp-content\/uploads\/2023\/01\/image-1024x216.png\" alt=\"\" class=\"wp-image-684\" width=\"475\" height=\"100\" srcset=\"http:\/\/wizardofbots.com\/network\/wp-content\/uploads\/2023\/01\/image-1024x216.png 1024w, http:\/\/wizardofbots.com\/network\/wp-content\/uploads\/2023\/01\/image-600x127.png 600w, http:\/\/wizardofbots.com\/network\/wp-content\/uploads\/2023\/01\/image-300x63.png 300w, http:\/\/wizardofbots.com\/network\/wp-content\/uploads\/2023\/01\/image-768x162.png 768w, http:\/\/wizardofbots.com\/network\/wp-content\/uploads\/2023\/01\/image.png 1476w\" sizes=\"(max-width: 475px) 100vw, 475px\" \/><\/figure><\/div>","protected":false},"excerpt":{"rendered":"<p>So I am going to start coding my custom script so I can know how to do this properly in order to keep my personal tool for growth, this way I will include AI in this process. This script is free and works to promote my next private script. If you are interested just subscribe [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":683,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[15,23],"tags":[161,24,160],"class_list":["post-681","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-python","tag-instagram-api","tag-python","tag-python3-code"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Python3 script to use Instagram API to check if people I follow don&#039;t follow back - Wizard Of Bots<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/wizardofbots.com\/network\/python3-script-to-use-instagram-api-to-check-if-people-i-follow-dont-follow-back\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python3 script to use Instagram API to check if people I follow don&#039;t follow back - Wizard Of Bots\" \/>\n<meta property=\"og:description\" content=\"So I am going to start coding my custom script so I can know how to do this properly in order to keep my personal tool for growth, this way I will include AI in this process. This script is free and works to promote my next private script. If you are interested just subscribe [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"http:\/\/wizardofbots.com\/network\/python3-script-to-use-instagram-api-to-check-if-people-i-follow-dont-follow-back\/\" \/>\n<meta property=\"og:site_name\" content=\"Wizard Of Bots\" \/>\n<meta property=\"article:published_time\" content=\"2023-01-27T08:10:29+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-11-25T08:51:04+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/wizardofbots.com\/network\/wp-content\/uploads\/2023\/01\/writingpython.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"1024\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"wizardofbots\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"wizardofbots\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"http:\/\/wizardofbots.com\/network\/python3-script-to-use-instagram-api-to-check-if-people-i-follow-dont-follow-back\/\",\"url\":\"http:\/\/wizardofbots.com\/network\/python3-script-to-use-instagram-api-to-check-if-people-i-follow-dont-follow-back\/\",\"name\":\"Python3 script to use Instagram API to check if people I follow don't follow back - Wizard Of Bots\",\"isPartOf\":{\"@id\":\"https:\/\/wizardofbots.com\/network\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\/\/wizardofbots.com\/network\/python3-script-to-use-instagram-api-to-check-if-people-i-follow-dont-follow-back\/#primaryimage\"},\"image\":{\"@id\":\"http:\/\/wizardofbots.com\/network\/python3-script-to-use-instagram-api-to-check-if-people-i-follow-dont-follow-back\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/wizardofbots.com\/network\/wp-content\/uploads\/2023\/01\/writingpython.png\",\"datePublished\":\"2023-01-27T08:10:29+00:00\",\"dateModified\":\"2023-11-25T08:51:04+00:00\",\"author\":{\"@id\":\"https:\/\/wizardofbots.com\/network\/#\/schema\/person\/31f9e486da1c11791d94a861854a2a9f\"},\"breadcrumb\":{\"@id\":\"http:\/\/wizardofbots.com\/network\/python3-script-to-use-instagram-api-to-check-if-people-i-follow-dont-follow-back\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/wizardofbots.com\/network\/python3-script-to-use-instagram-api-to-check-if-people-i-follow-dont-follow-back\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/wizardofbots.com\/network\/python3-script-to-use-instagram-api-to-check-if-people-i-follow-dont-follow-back\/#primaryimage\",\"url\":\"http:\/\/wizardofbots.com\/network\/wp-content\/uploads\/2023\/01\/writingpython.png\",\"contentUrl\":\"http:\/\/wizardofbots.com\/network\/wp-content\/uploads\/2023\/01\/writingpython.png\",\"width\":1024,\"height\":1024},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/wizardofbots.com\/network\/python3-script-to-use-instagram-api-to-check-if-people-i-follow-dont-follow-back\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/wizardofbots.com\/network\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python3 script to use Instagram API to check if people I follow don&#8217;t follow back\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/wizardofbots.com\/network\/#website\",\"url\":\"https:\/\/wizardofbots.com\/network\/\",\"name\":\"Wizard Of Bots\",\"description\":\"Botting and AI community\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/wizardofbots.com\/network\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/wizardofbots.com\/network\/#\/schema\/person\/31f9e486da1c11791d94a861854a2a9f\",\"name\":\"wizardofbots\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/wizardofbots.com\/network\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/2.gravatar.com\/avatar\/584eebc303f64610559ab9f305f6928d?s=96&d=mm&r=g\",\"contentUrl\":\"http:\/\/2.gravatar.com\/avatar\/584eebc303f64610559ab9f305f6928d?s=96&d=mm&r=g\",\"caption\":\"wizardofbots\"},\"url\":\"http:\/\/wizardofbots.com\/network\/author\/wizardofbots\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Python3 script to use Instagram API to check if people I follow don't follow back - Wizard Of Bots","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/wizardofbots.com\/network\/python3-script-to-use-instagram-api-to-check-if-people-i-follow-dont-follow-back\/","og_locale":"en_US","og_type":"article","og_title":"Python3 script to use Instagram API to check if people I follow don't follow back - Wizard Of Bots","og_description":"So I am going to start coding my custom script so I can know how to do this properly in order to keep my personal tool for growth, this way I will include AI in this process. This script is free and works to promote my next private script. If you are interested just subscribe [&hellip;]","og_url":"http:\/\/wizardofbots.com\/network\/python3-script-to-use-instagram-api-to-check-if-people-i-follow-dont-follow-back\/","og_site_name":"Wizard Of Bots","article_published_time":"2023-01-27T08:10:29+00:00","article_modified_time":"2023-11-25T08:51:04+00:00","og_image":[{"width":1024,"height":1024,"url":"http:\/\/wizardofbots.com\/network\/wp-content\/uploads\/2023\/01\/writingpython.png","type":"image\/png"}],"author":"wizardofbots","twitter_card":"summary_large_image","twitter_misc":{"Written by":"wizardofbots","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"http:\/\/wizardofbots.com\/network\/python3-script-to-use-instagram-api-to-check-if-people-i-follow-dont-follow-back\/","url":"http:\/\/wizardofbots.com\/network\/python3-script-to-use-instagram-api-to-check-if-people-i-follow-dont-follow-back\/","name":"Python3 script to use Instagram API to check if people I follow don't follow back - Wizard Of Bots","isPartOf":{"@id":"https:\/\/wizardofbots.com\/network\/#website"},"primaryImageOfPage":{"@id":"http:\/\/wizardofbots.com\/network\/python3-script-to-use-instagram-api-to-check-if-people-i-follow-dont-follow-back\/#primaryimage"},"image":{"@id":"http:\/\/wizardofbots.com\/network\/python3-script-to-use-instagram-api-to-check-if-people-i-follow-dont-follow-back\/#primaryimage"},"thumbnailUrl":"http:\/\/wizardofbots.com\/network\/wp-content\/uploads\/2023\/01\/writingpython.png","datePublished":"2023-01-27T08:10:29+00:00","dateModified":"2023-11-25T08:51:04+00:00","author":{"@id":"https:\/\/wizardofbots.com\/network\/#\/schema\/person\/31f9e486da1c11791d94a861854a2a9f"},"breadcrumb":{"@id":"http:\/\/wizardofbots.com\/network\/python3-script-to-use-instagram-api-to-check-if-people-i-follow-dont-follow-back\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/wizardofbots.com\/network\/python3-script-to-use-instagram-api-to-check-if-people-i-follow-dont-follow-back\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/wizardofbots.com\/network\/python3-script-to-use-instagram-api-to-check-if-people-i-follow-dont-follow-back\/#primaryimage","url":"http:\/\/wizardofbots.com\/network\/wp-content\/uploads\/2023\/01\/writingpython.png","contentUrl":"http:\/\/wizardofbots.com\/network\/wp-content\/uploads\/2023\/01\/writingpython.png","width":1024,"height":1024},{"@type":"BreadcrumbList","@id":"http:\/\/wizardofbots.com\/network\/python3-script-to-use-instagram-api-to-check-if-people-i-follow-dont-follow-back\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/wizardofbots.com\/network\/"},{"@type":"ListItem","position":2,"name":"Python3 script to use Instagram API to check if people I follow don&#8217;t follow back"}]},{"@type":"WebSite","@id":"https:\/\/wizardofbots.com\/network\/#website","url":"https:\/\/wizardofbots.com\/network\/","name":"Wizard Of Bots","description":"Botting and AI community","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/wizardofbots.com\/network\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/wizardofbots.com\/network\/#\/schema\/person\/31f9e486da1c11791d94a861854a2a9f","name":"wizardofbots","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wizardofbots.com\/network\/#\/schema\/person\/image\/","url":"http:\/\/2.gravatar.com\/avatar\/584eebc303f64610559ab9f305f6928d?s=96&d=mm&r=g","contentUrl":"http:\/\/2.gravatar.com\/avatar\/584eebc303f64610559ab9f305f6928d?s=96&d=mm&r=g","caption":"wizardofbots"},"url":"http:\/\/wizardofbots.com\/network\/author\/wizardofbots\/"}]}},"_links":{"self":[{"href":"http:\/\/wizardofbots.com\/network\/wp-json\/wp\/v2\/posts\/681"}],"collection":[{"href":"http:\/\/wizardofbots.com\/network\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/wizardofbots.com\/network\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/wizardofbots.com\/network\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/wizardofbots.com\/network\/wp-json\/wp\/v2\/comments?post=681"}],"version-history":[{"count":6,"href":"http:\/\/wizardofbots.com\/network\/wp-json\/wp\/v2\/posts\/681\/revisions"}],"predecessor-version":[{"id":691,"href":"http:\/\/wizardofbots.com\/network\/wp-json\/wp\/v2\/posts\/681\/revisions\/691"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/wizardofbots.com\/network\/wp-json\/wp\/v2\/media\/683"}],"wp:attachment":[{"href":"http:\/\/wizardofbots.com\/network\/wp-json\/wp\/v2\/media?parent=681"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/wizardofbots.com\/network\/wp-json\/wp\/v2\/categories?post=681"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/wizardofbots.com\/network\/wp-json\/wp\/v2\/tags?post=681"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}