2024-Nov

Python Weather Web Scraper

This is the final project of our Python course, the requirement of the project is that we need to write a crawler software using Python to get the historical weather data of Canada and develop a mini-application based on it with an interactive interface. The user can use the interface to input the query date and get the data for the corresponding date.

However, because the instructor had different expectations for our group, he thought that since AI has become a future trend, we can't stand still. So he gave us a different assignment: instead of the traditional query function, we could use openai's AI function to predict the weather data of a certain day or time in the future based on the relevant data.

Therefore, after making a scrapper using XHTML, we smoothly extracted the data and stored it in JSON, and got the results by integrating OpenAI and letting OpenAI read the JSON file and give it a certain prompt.

Section 3

We used the gpt 3.5 model, because we also considered the cost of being a student, so we did not use a more advanced model. To organize, this project is not difficult but very practical. It serves as a great primer for us to get into the real workplace later on.

Section 4
Learn MoreBack to Projects