Home > other >  Web crawler
Web crawler

Time:11-15

Hello I am a student of first learning to golang golang excuse me how should I use to reach the topic needs thank you

Your job is to design and create a CLI application that will parser www.alexa.com data. The application signature should look like The following:

$./clawer & lt; Action> & lt; Arg1 & gt; []
The application must be able to accept these actions as param and perform The corresponding tasks:
1. The top & lt; Number> : show top & lt; Number> Sites URL on www.alexa.com
2. The country & lt; Country> : show top 20 sites URL on www.alexa.com by country
E.g.

$./clawer top & lt; Number>
$./clawer country & lt; Country>

The application needs to have an extensible interface where adding a new action is just a matter of adding more files and should
Not require any modifications to the existing code base.
Ps. If anything is unclear, you may set a reasonable assumption and state it at the beginning of the situation.

  • Related