https://github.com/seanghay/netflix-fast-cli
A CLI version of Netflix FAST.COM (Unofficial).
https://github.com/seanghay/netflix-fast-cli
fast-com speedtest
Last synced: 8 months ago
JSON representation
A CLI version of Netflix FAST.COM (Unofficial).
- Host: GitHub
- URL: https://github.com/seanghay/netflix-fast-cli
- Owner: seanghay
- Created: 2022-10-09T07:53:48.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-09T08:47:32.000Z (over 3 years ago)
- Last Synced: 2024-11-16T10:16:56.997Z (over 1 year ago)
- Topics: fast-com, speedtest
- Language: JavaScript
- Homepage:
- Size: 50.8 KB
- Stars: 5
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README

A CLI version of Netflix FAST.COM (Unofficial).

## Usage
```shell
npx fast.com@latest
```
## How does it work?
1. Send a GET request to `https://fast.com/`
2. Parse the document using `cheerio`
3. Query the `script` tag and get its `src`
4. Fetch the script content
5. Parse the script with `acorn`
6. Find the `token` using `acorn-walk`
7. Send requests to `https://api.fast.com/netflix/speedtest/v2?https=true&token=${token}&urlCount=5` to get the request object urls.
8. Send all requests at once.
9. Benchmark using `stream.on('data')`.