How to get programmer's email from GitHub

The source code

import requests

import re

import time

from bs4 import BeautifulSoup

# Hello everyone today I want to show how to get programmer's email from GitHub

f = input('Search: ') # the search word   

url = '' %f 

for page in range(10): # The number of pages is 10 and you can change it


    r = requests.get(url + str(page))


    soup = BeautifulSoup(r.content, "html.parser")


    gh = soup.findAll('a', {'class':'muted-link'})

    for h in gh:


        print(h.text) #Print the programmer's email 

Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt.

Disqus Comments