{ From Scratch }
# CHAPTER 2
Crawling
Gets images, text, links from the websites found on the internet with an automated bot. Bot visits random website through the links found.
Parsing
Analyze what the website is all about. Extracts main keywords from the crawled website and saves meaningful results to the database.
Indexing
Meaningful result should be presented to the user. So, website is ranked on the basis of load time, main keywords, title, description, etc.
# 3 Stages
Crawling
Gets images, text, links from the websites found on the internet with an automated bot. Bot visits random website through the links found.
# 1 Crawling
Crawling
Gets images, text, links from the websites found on the internet with an automated bot. Bot visits random website through the links found.
# 1 Crawling
const urlKeywords = getSubdirectory(url);
const loadingTime = await checkLoading(page);
const details = await pageContent(page);
const images = await getImages(page);
const innerLinks = await getLinks(page);Parsing
Analyze what the website is all about. Extracts main keywords from the crawled website and saves meaningful results to the database.
# 2. Parsing
# 2. Parsing
Images
Data
Links
- reusable low Earth orbital
- National Aeronautics and Space Administration
- spacecraft
- spaceplane
# 2. Parsing
Images
Data
Links
- reusable low Earth orbital
- National Aeronautics and Space Administration
- spacecraft
- spaceplane
- Space Shuttle Program
- Space transportation system
- STS-1
- STS-5
- Kennedy Space Center
- Florida
- satellites
# 2. Parsing
Links
- reusable low Earth orbital
- National Aeronautics and Space Administration
- spacecraft
- spaceplane
- Space Shuttle Program
- Space transportation system
- STS-1
- STS-5
- Kennedy Space Center
- Florida
- satellites
Indexing
Meaningful result should be presented to the user. So, website is ranked on the basis of load time, main keywords, title, description, etc.
# 3 Indexing
# 3 Indexing
# 3 Indexing
# Tools
I have recently built a search engine from scratch using javascript. You can view it on GitHub.