Skip to content

Count the number of Alexa skills available in the Amazon skill store

Notifications You must be signed in to change notification settings

gtonye/count-amazon-alexa-skills

Repository files navigation

Amazon Alexa Skills Store Counter

Abstract

Disclaimer: This is not an Alexa skill

The following repository hosts the codebase for a scrapper that counts the number of Skills available on the Amazon Skill Store.

Development

Requirements

The following are necessary to use the script:

Setup

Local
# set the geckodriver path in the binaries path
virtualenv -p python3 .env
source ./env/bin/activate
pip install -r requirements.txt
pip install -r dev-requirements.txt
Using container

make docker-build

Run

Local
make run

Change the report by setting two environment variables:

BROWSER_TYPE=[headless, in_window]
REPORT_TYPE=[full, minimal]

Use in_window if you want to see the scrapping in an actual window and headless for an invisible scrapping. A full report type print the breakdown of skill number by category. minimal only displays the total number of skill.

Using container

make docker-run

You can also pass an environment file to script by doing:

make docker-run env-file="path-to-file"

Description

The code currently uses the amazon.com, and the logic follows the structure of that page. On the Skill store home, the scrapper will click on the available categories and search for the number of result per category.

Foreword

License

This code is yours.

The MIT License (MIT)
Copyright (c) 2018-present gtonye

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

F[ea|u]ture

Pull requests are more than welcomed. some of the things that would make this script even better:

  • support other regions where Skills are available (the present code only supports the US)
  • aggregate the count over the regions
  • add unit tests

About

Count the number of Alexa skills available in the Amazon skill store

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published