Creating HTML parser using golang

This time we are going to create a HTML parser for http://www.flashscore.com/ .

We need:
1) chromedriver
2) this library https://github.com/fedesog/webdriver

We are using chromedriver because flashscore.com loads livescore results using ajax, so we need a real browser.

So create new golang package and run go get github.com/fedesog/webdriver

Parser source code:

How to use our package:

Result output:

Leave a Reply

Your email address will not be published. Required fields are marked *