HOW TO Create a Simple Web Script Counter in Java

Today we are going to realize a simple Web Script Counter in Java, using the functional capabilities we have discovered yesterday.

If you missed them, I suggest to take them a look:

or if you know something about the functional paradigm, just go straight on!

Web Script counter, what?

Every website in the world has scripts loaded into their pages, mostly to make the page interactive, but others to track analytics, add ads and much more!
With this little tool, you can count them, or if you have more advanced tools, create a real web screaper using streams and regular expressions.

Which packages are we going to use?

  • Stream
  • URL
  • BufferedReader
  • HttpsURLConnection
  • InputStreamReader



This was just a simple and pratical example on how you can use the Streams, so have fun!

5 comments Add yours

Leave a Reply

Your email address will not be published.