Loading...
Loading...
Loading...
In this session, you will learn how to obtain data from web APIs as well as parse and normalize the data to use in a chart.
# Lesson 4: Information Retrieval In this session, you will learn how to obtain data from web APIs as well as parse and normalize the data to use in a chart. ## Objectives By the end of this lesson, you should be able to: 1. Make an AJAX request from the server to grab data from an external API 1. Use a scheduler to continuously pull data from external sources ## Welcome Slides: `npm run day4` ## Challenge The focus over the next two sessions will be to build the following app... ### Flask Bitcoin Build an app that will find the best exchange rates for Bitcoin (USD -> Bitcoin) from the following cryptocurrency exchanges: 1. [Bitstamp](https://www.bitstamp.net/) 1. [Kraken](https://www.kraken.com/) 1. [Bittrex](https://bittrex.com/) It should have the following pages: 1. The first page should display the rates and highlight the best one 1. The second page should display the rates over time ### Instructions We'll work through the pseudocode together. You'll code the app either alone (or with the awesome, good-looking people at your table). We'll come together after each step to review. ### Part 1 - Server Code Along! 1. Project Setup 1. Add SQLite 1. Get Data 1. Add scheduler > Example code: https://github.com/realpython/flask-bitcoin-example ## Homework 1. Compare your code from class with the [flask-bitcoin-example](https://github.com/realpython/flask-bitcoin-example) code. Make any necessary changes to your code. 1. Refactor to use [SQLAlchemy](bonus/sqlalchemy.md) 1. Deploy to [Heroku](bonus/heroku.md) 1. Add the remaining bitcoin exchanges
When asked to retrieve any information from the Advent of Code (AoC) website, use the following configuration for API calls to `https://adventofcode.com`.
DBFlow provides a few ways to retrieve information from the database. Through the `Model` classes we can map this information to easy-to-use objects.
title: "Clip-Retrieval Update: H-14 Index & SLURM Inference"
There are several ways to retrieve data from a Sleeper table. Remember that Sleeper is optimised for returning rows