mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 01:09:40 +08:00
Panagram Script Added (#1564)
* Python Program that fetches top trending news * Python Program that fetches top trending news * Revisions in Fetch BBC News * psf/black Changes * Python Program to send slack message to a channel * Slack Message Revision Changes * Python Program to check Palindrome String * Doctest Added * Python Program to check whether a String is Panagram or not * Python Program to check whether a String is Panagram or not * Check Panagram Script Added * Panagram Script Added * Anagram Script Changes * Anagram Alphabet Check Added * Python Program to fetch github info
This commit is contained in:

committed by
Christian Clauss

parent
fa6331aa82
commit
dd7d2fa270
17
web_programming/fetch_github_info.py
Normal file
17
web_programming/fetch_github_info.py
Normal file
@ -0,0 +1,17 @@
|
||||
# Created by sarathkaul on 14/11/19
|
||||
|
||||
import requests
|
||||
|
||||
_GITHUB_API = "https://api.github.com/user"
|
||||
|
||||
|
||||
def fetch_github_info(auth_user: str, auth_pass: str) -> None:
|
||||
# fetching github info using requests
|
||||
info = requests.get(_GITHUB_API, auth=(auth_user, auth_pass))
|
||||
|
||||
for a_info, a_detail in info.json().items():
|
||||
print(f"{a_info}: {a_detail}")
|
||||
|
||||
|
||||
if __name__ == "main":
|
||||
fetch_github_info("<USER NAME>", "<PASSWORD>")
|
Reference in New Issue
Block a user