Book Image

Swift Cookbook

By : Cecil Costa, Cecil Costa
Book Image

Swift Cookbook

By: Cecil Costa, Cecil Costa

Overview of this book

Table of Contents (18 chapters)
Swift Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Creating an SEO app


As you might know, nowadays, it's very common to analyze a website to get a better result on search engines. Counting the number of words on a website is a common way to know how search engines retrieve information from our website. As we already have a WordCounter class from the previous recipe, we will recycle it and create a new program, which is to count words on a website.

Getting ready

First of all, check some URLs from a website, the words of which you would like to count. It can be any website, but the idea is to have a few URLs to check with a lot of words.

To show that the task has finished, we will show an icon, so you can download it from the book resources or you can download your own icon.

Once you have your URL list and your icon ready, let's create a project called Chapter 5 SEO; add your icon and let's code.

How to do it...

Follow these steps to create an SEO app:

  1. First, copy the WordCounter.swift file from the other previous recipe. To do this, just drag the...