This is a simple program that collects usernames from GitHub and returns a url to the Profile Picture of the user.
This project is part of my #100DaysOfCode learning streak. I intend to write a simple python program each day. Each project would:
- be heavily commented for learning purposes;
- include a README file similar to this one;
- include an algorithm to solve it without code.
- Start.
- Install required libraries.
- Create a variable to collect the username of the github account.
- Concatenate the username to the github domain to create a complete url and store in a variable.
- Send a request to the url using the appropriate library. Example of a request libray is requests in python.
- Collect the content of the request and store in a variable using an appropriate library. Example bs4 from Python
- Use specific tags and parameters to identify the src url that includes the link to the user's profile picture and store in a variable.
- Print the variable.
- Stop.
For more understanding, watch the full tutorial here from freeCodeCamp.org