Python 100 project #10: FortiAnalyzer Past week Top Website

One thing I found out during the API exploration of various vendor, Fortinet is one of the vendor which has a broad set of those interfaces among their product lines. It was surprising as I had thought Fortinet had been one of the most locked in company in terms of API (as the document is extremely difficult to find).

Some of their product can be deployed onto the AWS quite easily, hence it’s easy to evaluate, and once you have access to the right channel, it has quite a bunch of resource to support you.

 

Output Example:

Because I usually watch Netflix for a few hours everyday, it occupies most of the internet usage.

 

Here is the code:

Most of the connection sequence, I used the class provided by Fortinet team (FNTNLIB).

 

このFortiAnalyzerからの出力結果をWordCloudにすると以下のような感じ。

これをEcho Spot, Echo Showなどと組み合わせれば、音声で過去一週間でどのようなWebサイトが閲覧されたかが表示される。