Python teaches me Black History | Code with me, black history fact generator, CS project

ZeemTheDream

Python teaches me Black History | Code with me, black history fact generator, CS project by ZeemTheDream

The video creator introduces a beginner level Python project for Black History Month, which involves a fact generator program that utilizes two APIs: Black History Fact and Google Custom Search Engine. They explain APIs and go through the steps to create a secret.pi file containing the API token information, sign up for the API key and programmable custom search engine. The creator also adds a background to their tkinter window from Black History Month wallpapers, organizes the different components, and creates frames for a person and the different buttons. They call the Black History Fact API, code the placement of the generated fact and corresponding person's image onto a tkinter window, and implement a "Learn More" button that opens a web browser with the source metadata.

00:00:00

In this section, the speaker introduces the project they will be working on which is a beginner level Python project in honor of Black History Month. They will create a fact generator that generates facts about black history by using two APIs: the Black History Fact API and the Google Custom Search Engine API. The speaker explains what APIs are and how they work, and then walks through the steps to create a secret.pi file that will contain all of the API token information needed for the project. They also go through the preliminary steps for the project, such as signing up for an API key and creating a programmable custom search engine. Finally, the speaker initializes their Black History Fact Generator class and defines the necessary methods for the project.

00:05:00

In this section, the creator adds a background to their Tikinter window by searching Google for Black History Month wallpapers and choosing ones they like. They resize the image to the same size as their window and save it as a PNG file. They then organize the different components they want on their Black History fact generator and create frames for a person and the different buttons on their window. The creator adds color and borders to the frames and creates a generate fact button and a learn button. They then work on calling the Black History Fact API and set up the necessary format for the request to retrieve a fact along with metadata.

00:10:00

In this section, the video creator codes the placement of the generated Black History fact and corresponding person's image onto a tkinter window. They utilize the Google custom search API to search for an image of the person corresponding to the fact and format the generated fact to fit onto the tkinter window. They also implement a "Learn More" button that opens a web browser with the source metadata provided by the Black History fact API.

More from
ZeemTheDream

No videos found.

Related Videos

No related videos found.

Trending
AI Music

No music found.