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.
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:
- Make an AJAX request from the server to grab data from an external API
- 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:
It should have the following pages:
- The first page should display the rates and highlight the best one
- 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!
- Project Setup
- Add SQLite
- Get Data
- Add scheduler
Example code: https://github.com/realpython/flask-bitcoin-example
Homework
- Compare your code from class with the flask-bitcoin-example code. Make any necessary changes to your code.
- Refactor to use SQLAlchemy
- Deploy to Heroku
- Add the remaining bitcoin exchanges
Related Documents
Retrieval
1. Planetary Parameters (M*, M1, P1)
Retrieving data from VLM's pretraining dataset
> Recent studies show that the LAION dataset contains CSAM content, ~~leading to its temporary removal from public access~~. See [Safety Review for LAION](https://laion.ai/notes/laion-maintenance/). We also observed that retrieved images may contain NSFW content. Please exercise caution when using this data.
bulk_retrieval
A retrieval tool that pulls a set of objects from the Alation catalog based on a signature.
PRD: Historical Retrieval System
**Owner**: Autohand Team