Coder Social home page Coder Social logo

rickandmortyapi's Introduction

RickAndMorty API Integration

This project is a simple integration connector (client) for the RickAndMorty API (https://rickandmortyapi.com/) - test task solution. It fetches data related to characters, locations, and episodes from the RickAndMorty API and performs specified tasks.

Objectives:

  1. Fetch Entire API Data: Retrieve the entire dataset from the API for the entities:

    • Character
    • Location
    • Episode
  2. JSON File Output: The fetched data is stored in distinct JSON files.

  3. JSON Data Structure: The structure for each JSON file is:

    • Id: A generated unique GUID.
    • Metadata: The name extracted from the respective entity.
    • RawData: The comprehensive fetched JSON data presented as a dictionary.

Upon the program's successful execution, it will display:

  1. Names of episodes aired between 2017 and 2021 that encompass more than three characters.
  2. Locations that are exclusively mentioned in episodes with odd numbers (e.g., episodes 1, 3, 9 irrespective of their season).

Requirements

  • Python 3.6 or higher
  • Requests library

Installation

  1. Clone this repository.
  2. Create a virtual environment: python3 -m venv myenv.
  3. Activate the virtual environment: source myenv/bin/activate (Linux/Mac) or myenv\Scripts\activate (Windows).
  4. Install the required packages: pip3 install -r requirements.txt.

Usage

Simply run the main script:

python3 main.py

rickandmortyapi's People

Watchers

Greg avatar

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.