Skip to content

A repository with a focus on building projects using HTTP request methods and APIs ๐ŸŒ.

Notifications You must be signed in to change notification settings

grandeurkoe/python-http-requests-and-api-projects

Repository files navigation

Python HTTP Requests and APIs Projects

These python HTTP Requests and APIs projects are built in correspondence with " 100 Days of Code - The Complete Python Pro Bootcamp " course. This course was taught by London's App Brewery top instructor Angela Yang.

Each project has been built from scratch with minimal to no assistance.

Day 033 - Kanye Quotes App

This project simulates the Kanye Quotes App. Use the requests module to get kanye quotes from the kanye.rest API. Fetch the quotes from the newly acquired JSON response and store it. Fetch and display a random quote on button click.

For a live version, go here .

Kanye Quotes App

Day 034 - Quizzler App

This project simulates the Quizzler App. Use the requests module to get quiz data from the Open Trivia Database API. Fetch the quiz data from the newly acquired JSON response and store it. Click on โœ… button if you think the correct answer is "True". Click on โŒ button if you think the correct answer is "False". Turn question card green if the user guessed correctly else turn red. On reaching the end of the quiz, print user score on the console.

For a live version, go here .

Quizzler App

Day 035 - Rain Alert

This project simulates a Rain Alert script. Use the requests module to get data from the OpenWeather API. Fetch the hourly rain data from the newly acquired JSON response and store it. Check if it will rain based on this stored data. If it rains, then send an email (rain alert mail) using the smptlib library.

For a live version, go here .

Rain Alert

Day 036 - Stock Trading News Alert

This project simulates a Stock Trading News Alert script. Set the STOCK and COMPANY_NAME to whichever stock you want to track. Use the request module to get stock data from the Alpha Advantage API. Fetch and store the new acquired JSON response. Get the stock price at close time for both yesterday and day before yesterday using stored data. Calculate the stock price change in percentage between yesterday and day before yesterday. If the price change is greater than 5%, then get the top 3 articles that explains this stock price change using NewsAPI API. Additionally, send an email (stock trading news alert) using the smptlib library.

For a live version, go here .

Stock Trading News Alert

Day 037 - Habit Tracker

This project tracks daily cycling using the Pixela API.

Features included:

  • Create a Pixela user account.
  • Create a graph.
  • Get cycling data in kilometers as user input. Post a pixel on graph.
  • Update a pixel on graph.
  • Delete a pixel on graph.

For a live version, go here .

Habit Tracker

Day 038 - Workout Tracker

This project simulates a workout tracker. Get today's exercise entry in natural language form i.e., "30 minutes yoga". Use the requests module to make a POST request to the Nutritionix v2.0 API by passing today's exercise data as API parameters. The Nutritionix API will parse today's exercise entry and calculate the calories burned. Store the newly acquired JSON response from the Nutritionix API. Furthermore, use the requests module to make a POST request to the Sheety API by passing each exercise entry from the stored JSON data as API parameter. The Sheety API will push each exercise entry onto a new row in the "workouts" sheet (part of "My Workout" spreadsheet). Finally, display each exercise entry onto the console.

For a live version, go here .

Workout Tracker

Day 039 - Flight Deal Finder

This project simulates the Flight Deal Finder.

Features included:

  • Get cheapest flight deals - Use the requests module to get all entries from "prices" sheet (part of "flightDeals" spreadsheet) using the Sheety API. Use the requests module to get all flights from each city in the "prices" sheet to every available destination using the Tequila API. Store the newly acquired JSON response from the Tequila API. Finally, compute the cheapest flight deal.
  • Send Email - Send an Email with the cheapest flight deal using the smptlib library.

For a live version, go here .

Flight Deal Finder

Day 040 - Flight Club

This project simulates the Flight Club.

Features included:

  • Add customers - Get customer's first name, last name and email as user input. Use the requests module to make a POST request to the Sheety API by passing customer's data as API parameter. The Sheety API will push customer's data onto a new row in the "users" sheet (part of "flightDeals" spreadsheet).
  • Get cheapest flight deals - Use the requests module to get all entries from "prices" sheet (part of "flightDeals" spreadsheet) using the Sheety API. Use the requests module to get all flights from each city in the "prices" sheet to every available destination using the Tequila API. Store the newly acquired JSON response from the Tequila API. Finally, compute the cheapest flight deal.
  • Send Email - Send an Email to every customer in the "users" sheet using the smptlib library.

For a live version, go here .

Flight Club

Getting Started

Prerequisites

For Windows:

Download and Install the latest version of Python.

Download and Install the latest version of PyCharm Community Edition.

For Linux:

Linux comes preinstalled with Python.

To install the latest version of PyCharm Community Edition, run the following command:

sudo snap install pycharm-community --classic

Installing

You can install all the required packages listed in the requirements.txt file for the project at the same time:ย 

On Windows type:

python -m pip install -r requirements.txt

On MacOS type:

pip3 install -r requirements.txt

Built Using

Python Pandas Pycharm Replit Obsidian git Github

Authors

Initial work - grandeurkoe

About

A repository with a focus on building projects using HTTP request methods and APIs ๐ŸŒ.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages