|
1 |
| -# Air pollution Prediction |
2 |
| -_______________________________________________________________________ |
3 | 1 |
|
4 |
| -## What is it? |
5 | 2 |
|
6 |
| -This helps you find the levels of Air pollution plotted graphically with a provided dataset. |
| 3 | +**User Guide: Air Pollution Prediction** |
7 | 4 |
|
8 |
| -## TechStack |
| 5 | +This user guide provides step-by-step instructions on how to use the Air Pollution Prediction script in the Amazing-Python-Scripts repository. This script uses data from the World Air Quality Index API to predict air pollution levels in a given city. |
9 | 6 |
|
10 |
| -1. Module used: |
| 7 | +**Step 1: Install Dependencies** |
| 8 | +Before you can use the Air Pollution Prediction script, you need to make sure that you have all the necessary dependencies installed. This script requires Python 3 and the requests and matplotlib libraries. To install these dependencies, open a terminal or command prompt and run the following command: |
| 9 | +``` |
| 10 | +pip install requests matplotlib |
| 11 | +``` |
11 | 12 |
|
12 |
| - - matplotlib |
| 13 | +**Step 2: Obtain an API Key** |
| 14 | +To use the World Air Quality Index API, you will need to obtain an API key. You can do this by visiting the following website and following the instructions to create an account and obtain an API key: https://aqicn.org/data-platform/token/ |
13 | 15 |
|
14 |
| -## How to use? |
| 16 | +**Step 3: Download the Script** |
| 17 | +Next, you need to download the Air Pollution Prediction script from the Amazing-Python-Scripts repository. You can do this by visiting the repository on GitHub and navigating to the `Air pollution prediction` directory. From there, you can download the `CodeAP.py` file to your computer. |
15 | 18 |
|
16 |
| -You can clone the repository directly from |
| 19 | +**Step 4: Run the Script** |
| 20 | +Once you have downloaded the script and obtained an API key, you can run it by opening a terminal or command prompt, navigating to the directory where you saved the file, and running the following command: |
| 21 | +``` |
| 22 | +python CodeAP.py |
| 23 | +``` |
| 24 | +This will start the script and prompt you to enter your city name and API key. |
17 | 25 |
|
18 |
| -```https://github.com/Pranjal-2001/Amazing-Python-Scripts.git``` |
| 26 | +**Step 5: View the Results** |
| 27 | +After entering your city name and API key, the script will retrieve air pollution data from the World Air Quality Index API and display it in a pie chart. The chart shows the relative amounts of different pollutants in the air, such as PM2.5, PM10, NO2, SO2, and O3. |
19 | 28 |
|
20 |
| -## To get your API |
21 |
| - |
22 |
| - |
23 |
| -[Click here to get your API](https://waqi.info/) |
| 29 | +You can use this information to get an idea of air pollution levels in your city and take appropriate precautions. |
24 | 30 |
|
25 |
| - |
26 |
| -[Click here to get your API key](https://aqicn.org/data-platform/token/#/) |
| 31 | +You can experiment with different cities to see how their air pollution levels compare. |
0 commit comments