Search code examples
rubyemailweb-scrapinginstagraminstagram-api

Instagram user's contact e-mail?


Ruby on rails dev here.

This question has been asked before. Here, here and here. The problem is that they did not make the right question or the solution given was somewhat shallow.

I ´ll be as specific as I can.

The Goal

I want get the user´s contact e-mail and not the account e-mail. Two different things. :) Some users leave their email on the contact button. It´s public.

My goal is to make a software that can extract e-mails, but for now, only extracting one e-mail from one single account will be more than enough to have my MVP going.

here is an example below on how instagram let users share their e-mail.

enter image description here

The Problem It only shows in app :( If it were to be shown on the browser as well, it would be a walk in the park. The contact button that has the e-mail and phone number does not show in the browser.

**The Good Part* There is some solutions to it.

This guy has a figured it out using the API, but I don´t quite understand how he did it. The downside is that all solution wants to sell you a product.

The focus of this company lies on extracting instagram e-mails and it seems legit.

Last but not least, this dude is using appium to extract those juicy e-mails. The third won´t really work for me because it seems too messy. Having to use a android emulator will be my last resort.

Thanks for helping and happy new year.


Solution

    • Set up mitmproxy on your machine.
    • Set up the certificates on your phone and use your machine as the gateway.
    • Analyze the traffic.
    • Reverse engineer the API (to log in and get info about user profiles) and then use it in your Ruby/Python/whatever code.