Skip to content

Latest commit

 

History

History

0x11-python-network_1

Python-network_1

Technologies

  • Files written in vi, vim, and emacs editors.
  • Files tested on Ubuntu 20.04
  • Python3.4 files

Files

Files Question
0-hbtn_status.py Write a Python script that fetches https://alx-intranet.hbtn.io/status.
1-hbtn_header.py Write a Python script that takes in a URL, sends a request to the URL and displays the value of the X-Request-Id variable found in the header of the response.
2-post_email.py Write a Python script that takes in a URL and an email, sends a POST request to the passed URL with the email as a parameter, and displays the body of the response (decoded in utf-8).
3-error_code.py Write a Python script that takes in a URL, sends a request to the URL and displays the body of the response (decoded in utf-8).
4-hbtn_status.py Write a Python script that fetches https://alx-intranet.hbtn.io/status.
5-hbtn_header.py Write a Python script that takes in a URL, sends a request to the URL and displays the value of the variable X-Request-Id in the response header.
6-post_email.py Write a Python script that takes in a URL and an email address, sends a POST request to the passed URL with the email as a parameter, and finally displays the body of the response.
7-error_code.py Write a Python script that takes in a URL, sends a request to the URL and displays the body of the response.
8-json_api.py Write a Python script that takes in a letter and sends a POST request to http://0.0.0.0:5000/search_user with the letter as a parameter.
10-my_github.py Write a Python script that takes your GitHub credentials (username and password) and uses the GitHub API to display your id.
  • 100-github_commits.py - The Holberton School staff evaluates candidates applying for a back-end position with multiple technical challenges, like this one: Please list 10 commits (from the most recent to oldest) of the repository “rails” by the user “rails” You must use the GitHub API, here is the documentation https://developer.github.com/v3/repos/commits/ Print all commits by: `<sha>: <author name>` (one by line).` Write a Python script that takes 2 arguments in order to solve this challenge