9 lines
No EOL
276 B
Python
9 lines
No EOL
276 B
Python
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) |