globalwarmingsurvey
v1.0.1
Published
README
Readme
globalwarmingsurvey
globalwarmingsurvey is a CLI tool that allows users to select a location, base year, comparison year, and month through a series of questions and displays temperature data as a line graph. This tool scrapes data from the Japan Meteorological Agency and visualizes the data for comparison.
Features
- Interactive Questions: Uses the Enquirer library to ask users for the location, base year, comparison year, and month.
- Web Scraping: Scrapes the Japan Meteorological Agency's website for average and maximum temperatures based on user input.
- Data Visualization: Uses the Chart.js library to display the scraped data as a line graph.
- Server Activation: Starts a local server using the Express library, allowing users to view the results in their browser.
Usage
1. Run the program:
npx globalwarmingsurvey2. Answer the questions prompted by the Enquirer library.
3. After all questions are answered:
- The program will scrape the Japan Meteorological Agency's website for the specified location, year, and month to obtain the average and maximum temperatures.
4. The program will create an HTML element with a line graph displaying the data using the Chart.js library.
5. Start the local server using the Express library:
Required Libraries
- Enquirer
- Puppeteer
- Express
- Open
- Pug
Contributing
Contributions are welcome! Please report bugs or suggest features through the Issues page.
License
This project is licensed under the MIT License. See the LICENSE file for details.
If you have any questions or feedback, please contact us.
