Act

drobnikj/crawler-stats

  • Builds
  • latest 0.1.9 / 2017-11-01
  • develop 0.1.2 / 2017-10-25
  • Created 2017-09-21
  • Last modified 2017-11-01
  • grade 2

Description

Act aggregates stats from Apify crawlers by selected period. It generates html page with crawlers stats.


API

To run the act, send a HTTP POST request to:

https://api.apify.com/v2/acts/drobnikj~crawler-stats/runs?token=<YOUR_API_TOKEN>

The POST payload will be passed as input for the act. For more information, read the docs.


Example input

Content type: application/json; charset=utf-8

{ "hello": 123 }

Readme

apify-act-crawlers-stats

Apify act aggregate stats from Apify crawlers by selected period. It generates html page with crawlers stats.

Input

Example:

{
    "date": "2017-08-01",
    "period": "month",
    "storeId": "sd6Hjk68kmd8hj"
}

period

  • Required
  • Selected period of aggregation
  • You can use day, month or isoWeek.

finishedPeriod

  • Optional
  • If true act aggregates the nearest finished period, otherwise aggregates current period.
  • By default is false

date

  • Optional
  • You can overwrite date of aggregation by default date of aggregation is current date.

storeId

  • Optional
  • You can set up Apify key value store, where act saves results.
  • By default default act default key value store is used.

Output

Act saves stats to key value store. Act OUTPUT is object with attributes:

htmlStatsUrl - html page with stats url statsUrl - data in JSON format url