Skip to content
Discussion options

You must be logged in to vote
  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').

You can get fast.com token using fast.com module.
https://www.npmjs.com/package/fast.com

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies

This comment was marked as off-topic.

@emekaorji
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
other General topics and discussions that don't fit into other categories, but are related to GitHub Product Feedback Share your thoughts and suggestions on GitHub features and improvements
5 participants