Initial upload
This commit is contained in:
commit
bf8a8f965d
7 changed files with 77 additions and 0 deletions
9
github_profile_picture.py
Normal file
9
github_profile_picture.py
Normal 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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue