Skip to content

Latest commit

 

History

History

0x11-python-network_1

0x11. Python - Network #1

Description

What you should learn from this project:

  • How to fetch internet resources with the Python package urllib
  • How to decode urllib body response
  • How to use the Python package requests #requestsiswaysimplerthanurllib
  • How to make HTTP GET request
  • How to make HTTP POST/PUT/etc. request
  • How to fetch JSON resources
  • How to manipulate data from an external service

  • 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.
  • 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)
  • 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).
  • 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
  • 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.
  • Write a Python script that takes in a URL, sends a request to the URL and displays the body of the response.
  • Write a Python script that takes in a string and sends a search request to the Star Wars API
  • Write a Python script that takes your Github credentials (username and password) and uses the Github API to display your id
  • The Holberton School staff evaluates candidates applying for a back-end position with multiple technical challenges, like this one:
  • Based on 9-starwars.py:
  • Based on 101-starwars.py:
  • Write a Python script that takes in 3 strings and sends a search request to the Twitter API

Author