Как найти почту пользователя на github

Вы впервые входите в GitHub.com? Если да, добро пожаловать обратно! Если вы не помните имя пользователя для личной учетной записи в GitHub, можно попробовать использовать следующие способы, которые помогут вам его вспомнить.

Пользователи GitHub Desktop

  1. В меню GitHub Desktop выберите пункт Настройки.
  2. В окне «Настройки» проверьте выполнение следующих условий.
    • Чтобы просмотреть имя пользователя GitHub щелкните Учетные записи.
    • Чтобы просмотреть адрес электронной почты Git, щелкните Git. Обратите внимание, что этот адрес электронной почты не обязательно является вашим основным адресом электронной почты GitHub.
  1. В меню Файл выберите Параметры.
  2. В окне «Параметры» проверьте выполнение следующих условий.
    • Чтобы просмотреть имя пользователя GitHub щелкните Учетные записи.
    • Чтобы просмотреть адрес электронной почты Git, щелкните Git. Обратите внимание, что этот адрес электронной почты не обязательно является вашим основным адресом электронной почты GitHub.

Поиск имени пользователя в конфигурации user.name

Во время настройки, возможно, вы задали имя пользователя в Git. В этом случае вы можете просмотреть значение этого параметра конфигурации:

$ git config user.name
# View the setting
YOUR_USERNAME

Поиск имени пользователя в URL-адресе удаленных репозиториев

Если у вас есть локальные копии созданных или разветвленных личных репозиториев, можно проверить URL-адрес удаленного репозитория.

Совет. Этот метод работает только в том случае, если у вас есть исходный репозиторий или собственная вилка репозитория другого пользователя. Если клонировать репозиторий другого пользователя, имя этого пользователя будет отображаться вместо вашего. Аналогичным образом, для репозиториев организации в удаленном URL-адресе будет отображаться имя организации вместо имени конкретного пользователя.

$ cd YOUR_REPOSITORY
# Change directories to the initialized Git repository
$ git remote -v
origin  https://github.com/YOUR_USERNAME/YOUR_REPOSITORY.git (fetch)
origin  https://github.com/YOUR_USERNAME/YOUR_REPOSITORY.git (push)

Имя пользователя следует сразу за https://github.com/.

Дополнительные материалы

  • «Подтверждение адреса электронной почты»

Время на прочтение
2 мин

Количество просмотров 15K

Мем с просторов интернета
Мем с просторов интернета

Этот пост будет полезен двум категориям людей: IT-рекрутерам и начинающим разработчикам, которые хотят научиться писать простенькие программы для решения практических задач.

Задача: известен профиль пользователя на GitHub, необходимо найти email этого пользователя

Идея написать бота пришла ко мне после того, как коллега поделилась со мной способом, которым эту задачу решают IT-рекрутеры:

1. Нужно ввести в адресную строку https://api.github.com/users/ник жертвы/events/public и открыть страницу

2. Нажать Ctrl+F и найти все символы «@»

3. Отсмотреть результаты и найти всё, что похоже на адрес электронной почты

Так выглядит результат поиска и найденный адрес электронной почты

Так выглядит результат поиска и найденный адрес электронной почты

На тот момент я ещё не знал о существовании EmailOnGitHub в Chrome Store и принялся писать бота на Python:

import requests, telebot, time

tkn = 'ваш_токен_телеграм_бота'
bot = telebot.TeleBot(tkn)


# Обработчик сообщения /start 

@bot.message_handler(commands=['start'])
def start_message(message):
    bot.send_message(message.chat.id, 'Привет, я помогу тебе найти email пользователя гитхаб по его нику. Отправь мне ник пользователя и, если он существует, я найду его почту')
                            

# Любое сообщение боту - это запрос на поиск по нику на гитхаб
# В качестве ответа отправляется результат выполнения функции email_finder

@bot.message_handler(content_types=['text'])
def send_text(message):

    bot.send_message(message.chat.id, email_finder(message.text))

Предполагается, что пользователь будет отправлять боту только ники людей на гитхаб, а наш бот, в свою очередь, отправляет любое входящее сообщение в функцию email_finder.

Эта функция должна возвращать либо электронную почту цели, либо ошибку. Приступим к написанию функции:

# Функция осуществляет запрос к апи гитхаб, на выходе отображает список публичных действий юзера
# Нас интересуют только коммиты, в них есть email автора коммита 

def email_finder(nick):
    rawlist, newlist = [], []

    # Делаем запрос на гитхаб, в запрос подставляем ник из входящего сообщения

    url = f'https://api.github.com/users/{nick}/events/public'
    r = requests.get(url)

    # Проверка существования адреса
    # Если пользователь найден - идем дальше по циклу, иначе выходим

    if r.status_code == 200:
        print('status 200 - OK')

        # Если пользователь найден, но возвращается пустой массив, то у юзера нет коммитов
        # Выходим из цикла с сообщением "Невозможно найти почту"

        if not r.json():
            return 'Пользователь найден. Невозможно найти email.'

    elif url_status == 404:
        return 'Юзер с таким ником не найден'
    else:
        return 'Неизвестная ошибка'

    # Поиск и выгрузка коммитов

    for element in r.json():
        if element['type'] == 'PushEvent':
            for commit in element['payload']['commits']:
            
                # Наполняем список всеми почтами из коммитов пользователя
                email = commit['author']['email']
                rawlist.append(email)
    f_list = 'Найдены электронные ящики: n'

    # Удаляем повторы из списка и форматируем новый список

    for i in rawlist:
        if i not in newlist:
            newlist.append(i)
    for element in newlist:
        f_list = f_list + element + 'n'

    return f_list

Основная часть готова. Остаётся добавить следующие строки:

# Чтобы бот не падал

while True:
    try:
        print('Слушаю сообщения...')
        bot.infinity_polling(True)

    except Exception as e:
        print('Я упал')
        time.sleep(15)

Наш бот для поиска почты готов, можно запускать и пользоваться. Пробная версия доступна по адресу @GitSorcerBot
Если пользователь публиковал коммиты и оставлял свою почту, бот выведет результат:

Why GitHub?

GitHub
is a social coding platform used by software developers and companies all around the world.
GitHub profiles generally include the individual’s name, company, location and sometimes the profile owner’s email address. GitHub is a great place to find leads for software development or engineering.
In this blog post we will show you how to find the email address for most GitHub profiles (even if they don’t publicly share their email).

Find a user’s GitHub email address

First and foremost, locate a GitHub user profile.
GitHub features an advanced search
you can use to find user profiles. The «User options» section of the advanced search enables you to search for
profiles based on location, name, followers, etc. It’s not within the scope of this blog post to go in depth
on the different search techniques for GitHub. Maybe in another post!

For the sake of this guide we will use a well known person to demonstrate how to find a user’s email address.
We will use Linus Torvald’s profile.

Linus Torvald's GitHub profile, which doesn't have a public email address.

Linus is a well known software developer and at the time of writing this blog post his GitHub profile does not
include his email. However, we can still find his email address. There are three basic steps to find almost any
GitHub user’s email address.

Locate a non-forked repository

The first step is to locate a non-forked repository. A forked repository is a repository that has been copied from someone else’s
GitHub account and in most cases will not contain the target user’s commits (and therefore not helpful for us). You can tell if a
repository is a fork because it will be prefixed with «Forked from».

A look at Linus' GitHub repositories. Ignore the forks and find a non-forked repository.

If the user has a non-forked repository there’s a good chance you will be able to find their email address. Once you find a
promising repository click on the name to be taken to the repository view. For this guide, we will be using Linus’ «test-tlib»
repository.

Find a commit by the user

Within the repository view you can see a «commits» link on the left hand side of the page.
The image below points it out. The more commits there are, the more likely it is to find a commit by the user.
In this case we see 11 commits. All we need is to find a single commit by the target user to find their email address.
Click on the commits link to be taken to a commit history view.

Click the commit history button to begin finding their email.

When viewing the commit history your goal is to find one or more commits created by the target GitHub user.
In our example, we are looking for commits by Linus (his GitHub user name is torvalds).

Click the commit ID to begin processing the commit.

Once you locate a promising commit click on the commit ID on the right hand side to view the actual commit.

Convert to the patch view to locate the email address

Ignore the commit view and add .patch to the end of the URL.

The commit view is not very interesting to us, however this is where the real trick comes in.
What you want to do next is look at the URL in your browser navigation bar. Add «.patch» to the
end of the URL as demonstrated below, and then hit «enter» to load the patch view.

Find the user's email address in the commit info!

Once the patch view loads you need to examine the commit info to the find the target author. All authors have a name
and email address. Locate the user’s email address!

Success! We found Linus' email address.

Note, GitHub has a privacy option to enable masking user emails. Some users enable that privacy option. In that case, you
will notice an email that looks something like this: username@users.noreply.github.com. In that case
you should ignore the email (maybe try an older repository).

With the trick outlined in this blog post you can find most email addresses on GitHub as long as the person has a commit history.
GitHub is a powerful source for leads and shouldn’t be missed!
Add the technique from this blog post to your tool belt, it will come in handy more often than you think!

If you don’t like the manual nature of this trick and find it too time consuming you can always give Nymeria a shot! Nymeria
automates this entire process on GitHub and supports finding email addresses on other websites such as LinkedIn, Facebook and Twitter.

Want to try for free? No credit card needed.

  • /
  • /

3 способа найти email разработчика на GitHub

В этой статье мы расскажем: про новое расширение, про доказавший эффективность сервис и про долгий, но простой путь ручного поиска почты.

Ладно-ладно, относительно новое расширение. Но очень полезное для рекрутера. Это будет очень короткий обзор — но, нам хочется верить, что полезный.

EmailOnGitHub — это расширение, которое найдет за вас email разработчика на GitHub. Расширение бесплатное, и доступно в Chrome Store.

Что делает?
По сути, сразу после установки, вам только и остается, что зайти на GitHub: расширение само встроить почту в профиль кандидата. А еще отметит тех разработчиков, которые готовы рассматривать сейчас вакансии.

И как результаты?
Мы проверили 5 рандомных GitHub-аккаунтов. Результативность поиска: 3/5.

Искать почту разработчика можно вручную.

Как это работает?
Для этого откройте страницу разработчика.
Пройдите в раздел Repositories >> откройте любой из них >> зайдите в Commits >> нажмите на любой из них >> в адресной строке добавьте к ссылке приставку .patch.

Саму почту можно найти с помощью команды cmd+F или ctrl+F и поискав на странице знак @.

И как результаты?
У нас получилось в 4/5 аккаунтов. Времени потратили тоже немало: минут 5-6 последовательного перехода по ссылкам.

А еще почты можно искать в Подборе: если вы являетесь нашим клиентом, конечно.

Как это работает?
У Подбора есть расширение: которое кроме почты покажет еще и телефон (иногда телеграм) и другие социальные сети кандидата. Ничего не нужно искать: достаточно открыть виджет расширения.

И как результаты?
Это не запланировано: но Подбор справился со всеми 5 аккаунтами. А еще нашел имена разработчиков с трудноразберимыми никами на GitHub — чтобы вы сразу могли обращаться к кандидату в письме подобающе.

В Подборе больше 500тыс. резюме IT-специалистов, собранных по кусочкам из открытых источниках. Почти в каждом — контакты, список релевантных навыков, ссылки на социальные сети и много чего еще.

Получить тестовый доступ можно >> тут.

Article main image

Feb 6, 2014

Editor’s note: This was #1 on the Best of 2014 list.

GitHub can be a powerful tool for sourcing software engineering talent. For the uninitiated, GitHub is a software project hosting service on which software engineers create a profile, host their code, or contribute to other projects. GitHub profiles often include an email address, twitter handle, and/or link to a personal website. Due to this, and as previously posted on SourceCon, even a simple site: search on GitHub’s domain produces some serious results. However, some of the best profiles simply have no contact information aside from a (hopefully) real name and a GitHub username.

Traditionally, you may cross reference a GitHub profile with LinkedIn, run the username through namechk and see where else they hangout, or even try to deduce an email address with the Rapportive plugin. You may even go so far as to hunt them down on OKCupid. As it turns out, you can get almost any GitHub user’s email address directly through GitHub’s own API from the comfort of your own browser in five simple steps.

1. Copy and paste the next line into your browser (feel free to bookmark it):

https://api.github.com/users/xxxxxxx/events/public

github1

2. Find the GitHub username for which you want the email:

github2

3. Replace the xxxxxxx in the URL with the person’s GitHub username.

github3

4. Hit Enter.

5. Press Ctrl+F and search for “email”.

github5

According to GitHub, this information is publicly available. However, you would likely only see it if you were an Engineer committing code to your candidate’s public repository through the Git system. In essence, this works by calling up said public information through GitHub’s API in your browser.

While this method works for the vast majority of usernames, there are a few who have opted not to store their personal email address on their public repositories. However, of the many usernames used in testing this method, I only ran into 3 that were masked.

On a side note, if the user has a popular public repository you may return multiple email addresses belonging to the various contributors to the repository. You can clear through these by searching for the name on the account (such as “Fredrik”) instead of “email”. Although on second thought, you may wish to engage the other contributors as well.

github7

github8

github9

Special thanks to @RStrandid, @MarkNexus, and @Panhawk

Понравилась статья? Поделить с друзьями:
  • Как найти хорошего гинеколога в воронеже
  • Как найти косинусы углов треугольника векторы
  • Как найти корзину на смартфоне реалми
  • Черное видео на ютубе как исправить
  • Как найти работу смотреть видео бесплатно