Giter VIP home page Giter VIP logo

api's Introduction

Country Data Visualization

This repository contains Python scripts to fetch and visualize country data using various APIs.

Files

  • country_data.py: This script fetches country data from the "restcountries.com" API and saves it in JSON format.
  • visualize_population.py: This script reads the country data from the JSON file and visualizes the population of the top 20 countries using matplotlib and seaborn libraries.
  • wiki_data.py: This script fetches additional data from the Wikipedia API and prints it to the console.

Visualization

Here is a screenshot of the graph output:

Graph Output

Dependencies

To run the scripts in this repository, you need to have the following dependencies installed:

  • Python 3
  • requests
  • json
  • pandas
  • matplotlib
  • seaborn

Usage

  1. Clone the repository:
git clone https://github.com/your-username/country-data-visualization.git
  1. Install the required dependencies:
pip install -r requirements.txt
  1. Run the scripts:

To fetch country data and create a JSON file:

python country_data.py

To visualize the population of the top 20 countries:

python visualize_population.py

To fetch additional data from Wikipedia:

python wiki_data.py

Feel free to explore and modify the scripts to suit your needs.

api's People

Contributors

tanishqpal avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

sefarious

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.