1323

Get information from the browser's network console

Question:

I want to access my browser's network console output via JavaScript or maybe another language.

<em>Here is a screenshot of the Firefox network console on Youtube:</em>

<img alt="Firefox Network console on Youtube" class="b-lazy" data-src="https://i.stack.imgur.com/A6zyu.png" data-original="https://i.stack.imgur.com/A6zyu.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" />

I just want to retrieve every URL my browser GETs, and do it in JavaScript, if possible (I insert my scripts in the page using the Firefox Scratchpad).

Thank you.

<h2>Edit: A bit more information about my project</h2>

I want to download a collection of "text to speech" samples generated by a website. But I don't want to use their API, because I know exactly how much samples I need (the number is above 300, so I don't want to do it manually).

Answer1:

By using a normal JS script inside your browser won't give you access to this Firefox Panel, due to security reasons. But an alternative (For Google Chrome) is to type chrome://net-internals/#events in the Chrome address bar. This will open the Network Monitor. There you can type Ctrl+Shift+J or Cmd+Option+J (On Mac OS) and gain access to all HTTP events with JavaScript directly in the console.

Recommend

  • Databinding to a textbox and sharing the object throughout the project
  • How do I get the intermediate object when using collection
  • How to take local working directory to any git revision irrespective of its branch after remote chan
  • Debugging a library of an external program? (Visual Studio 2010)
  • Why doesn't Microsoft Fakes create ShimFtpWebRequest?
  • How to integrate Liferay DXP with Apache POI?
  • Apache POI in executable jar
  • Overflow is shown mid css3 transition, how can I hide the overflow?
  • Where these are stored?
  • abstracting over a collection
  • How can I tell a form not to dispose a particular control when it closes?
  • nodemcu custom firmware build problems
  • saving file generated by TCPDF
  • How to run “Deployd” on port 80 instead of port 5000 in webserver.
  • Content-Length header not returned from Pylons response
  • How to attach a node.js readable stream to a Sendgrid email?
  • Allowing both email and username for authentication
  • Python urlparse: small issue
  • Typescript - Unable to get 'import' statement to function
  • Get one-time binding to work for ng-if
  • Is there a javascript serializer for JSON.Net?
  • Is there any way to access browser form field suggestions from JavaScript?
  • Fetching methods from BroadcastReceiver to update UI
  • DirectX11 ClearRenderTargetViewback with transparent buffer?
  • Where to put my custom functions in Wordpress?
  • Can I make an Android app that runs a web view in Chrome 39?
  • Symfony2: How to get request parameter
  • Hazelcast - OperationTimeoutException
  • Why is the timeout on a windows udp receive socket always 500ms longer than set by SO_RCVTIMEO?
  • How do you troubleshoot character encoding problems?
  • Web-crawler for facebook in python
  • GridView Sorting works once only
  • RestKit - RKRequestDelegate does not exist
  • retrieve vertices with no linked edge in arangodb
  • Unit Testing MVC Web Application in Visual Studio and Problem with QTAgent
  • Revoking OAuth Access Token Results in 404 Not Found
  • Buffer size for converting unsigned long to string
  • WPF Applying a trigger on binding failure
  • Django query for large number of relationships
  • Binding checkboxes to object values in AngularJs