Tuesday, December 3, 2024

Script to get the emails of your dev.to followers

Programming LanguageScript to get the emails of your dev.to followers


Why

You may want to reach your followers directly. In my case I needed this script to share our new project packagemain.tech with the audience.

How does it work

  1. A lot of users on dev.to are using Github to sign up, so their username matches their Github username
  2. Some people have their email address public on Github

Input parameters

  1. dev.to cookie session. You can find it Dev Tools by inspecting any XHR request and looking for _Devto_Forem_Session
  2. Github personal access token. You can create one here

Go script

https://gist.github.com/plutov/8db528b6470ce7c9b2d0e19670f79698

Usage

go run dev_to_emails.go --devtocookie={DEV_TO_COOKIE}--ghtoken={GH_TOKEN}
Enter fullscreen mode

Exit fullscreen mode

Output

  • users.json – list of dev.to followers
  • emails.txt – list of found emails

In my case I was able to find 900+ unique emails from my followers.

Hope this was helpful and please use it with good intentions only.

Check out our other content

Check out other tags:

Most Popular Articles