There is also other information such as status codes which indicate if a request was successful or not. Another important comment to make is that the radio stream URL is not hardcoded meaning that for each new session initiated either by a browser or in our cases an automated script, a session ID has to be taken into account. It can be commented that an API is being used for the stream and upon looking at the response of this request there is an xml document which includes useful information for our purpose for constructing the radio stream url. Using the network inspector tool and monitoring http requests in the console it can be seen that there is a HTTP GET request to the URL: In this case the Bloomberg radio stream is loaded on this url. Inspection of siteįirst of all navigate to the site and page where you wish to obtain some data. To achieve this we must first view the site and make use of the network inspector tools. The purpose of this project is to obtain a URL that will allow us to successfully stream Bloomberg radio. A network inspector tool can be used to monitor requests such as GET and POST HTTP requests that are made when a site is loaded and from this we can gain a greater understanding of the functionality of a site and locate data sources. would like to begin by talking about the importance of network inspector tools which are available on multiple browsers such as Mozilla Firefox, Google Chrome and many others.In addition to that there are two packages which are used: Photo by Matt Botsford on Unsplash Prerequisitesįor this tutorial please make sure you have a Node.js environment set up, if you need to do this please follow this official link: and follow the instructions for installation.
0 Comments
Leave a Reply. |