Initial upload

This commit is contained in:
Mueez Khan 2021-03-25 08:58:09 -04:00 committed by GitHub
commit bf8a8f965d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 77 additions and 0 deletions

View file

@ -0,0 +1,9 @@
import requests
from bs4 import BeautifulSoup as bs
github_user = input('Input GitHub User: ')
url = f'https://github.com/{github_user}'
r = requests.get(url)
soup = bs(r.content, 'html.parser')
profile_image = soup.find('img', {'alt' : 'Avatar'})['src']
print(profile_image)