Build an open future with us.

Invest in Mycroft and become a community partner.

Fairytalez skill - Let mycroft tells fairytles


How to install fairytalez skill

  • Install fairytalez skill by …
msm install

How to test Fairytalez skill

Specify the steps the user should take to test the Skill, such as;

  • does it install

  • can you get any fairytales when asking “Hey mycroft - tell a fairytale” ?

  • does he find the tales you want ? (see list here

  • can you stop him from telling by stop command or button on mark_1 ?

  • can you continue the storry by saying “hey mycroft - continue story”?

Where feedback on Fairytalez skill should be directed a

Please give feedback here or through Issues on GitHub, or via Mycroft Chat.

Interesting in this skill is

  • Use of BeautifulSoup for webscraping
        soup = BeautifulSoup(requests.get(url).text,"html.parser")
        lines = [a.text.strip() for a in soup.find(id="main").find_all("p")[1:]]
        lines = [l for l in lines if not l.startswith("{") and not l.endswith("}")]
        return lines
  • use og match_one from mycroft.util.parse to get best match from users spoken answer against the story index.
 index = self.get_index("")
        result = match_one(response, list(index.keys()))