Skip to content

natnew/Python-Projects-Web-Scraping-Github

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Python-Projects-Web-Scraping-Github 🐍

Python Script
This repo contains python code that scrapes Github pages and returns a Github link to the profile picture.
Run the code.

Python

import requests
from bs4 import BeautifulSoup as bs

github_user = input('Input Github user: ')
url = '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)
    

Output

Input Github user: https://.......

About

Python Projects Web Scraping Github

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages