
Go Web Scraping Quick Start Guide
Implement the power of Go to scrape and crawl data from the web
Vincent Smith(Author)
Packt Publishing
Published on 30. January 2019
Book
Paperback/Softback
132 pages
978-1-78961-570-8 (ISBN)
Description
Learn how some Go-specific language features help to simplify building web scrapers along with common pitfalls and best practices regarding web scraping.
Key Features
Use Go libraries like Goquery and Colly to scrape the web
Common pitfalls and best practices to effectively scrape and crawl
Learn how to scrape using the Go concurrency model
Book DescriptionWeb scraping is the process of extracting information from the web using various tools that perform scraping and crawling. Go is emerging as the language of choice for scraping using a variety of libraries. This book will quickly explain to you, how to scrape data data from various websites using Go libraries such as Colly and Goquery.
The book starts with an introduction to the use cases of building a web scraper and the main features of the Go programming language, along with setting up a Go environment. It then moves on to HTTP requests and responses and talks about how Go handles them. You will also learn about a number of basic web scraping etiquettes.
You will be taught how to navigate through a website, using a breadth-first and then a depth-first search, as well as find and follow links. You will get to know about the ways to track history in order to avoid loops and to protect your web scraper using proxies.
Finally the book will cover the Go concurrency model, and how to run scrapers in parallel, along with large-scale distributed web scraping.
What you will learn
Implement Cache-Control to avoid unnecessary network calls
Coordinate concurrent scrapers
Design a custom, larger-scale scraping system
Scrape basic HTML pages with Colly and JavaScript pages with chromedp
Discover how to search using the "strings" and "regexp" packages
Set up a Go development environment
Retrieve information from an HTML document
Protect your web scraper from being blocked by using proxies
Control web browsers to scrape JavaScript sites
Who this book is forData scientists, and web developers with a basic knowledge of Golang wanting to collect web data and analyze them for effective reporting and visualization.
Key Features
Use Go libraries like Goquery and Colly to scrape the web
Common pitfalls and best practices to effectively scrape and crawl
Learn how to scrape using the Go concurrency model
Book DescriptionWeb scraping is the process of extracting information from the web using various tools that perform scraping and crawling. Go is emerging as the language of choice for scraping using a variety of libraries. This book will quickly explain to you, how to scrape data data from various websites using Go libraries such as Colly and Goquery.
The book starts with an introduction to the use cases of building a web scraper and the main features of the Go programming language, along with setting up a Go environment. It then moves on to HTTP requests and responses and talks about how Go handles them. You will also learn about a number of basic web scraping etiquettes.
You will be taught how to navigate through a website, using a breadth-first and then a depth-first search, as well as find and follow links. You will get to know about the ways to track history in order to avoid loops and to protect your web scraper using proxies.
Finally the book will cover the Go concurrency model, and how to run scrapers in parallel, along with large-scale distributed web scraping.
What you will learn
Implement Cache-Control to avoid unnecessary network calls
Coordinate concurrent scrapers
Design a custom, larger-scale scraping system
Scrape basic HTML pages with Colly and JavaScript pages with chromedp
Discover how to search using the "strings" and "regexp" packages
Set up a Go development environment
Retrieve information from an HTML document
Protect your web scraper from being blocked by using proxies
Control web browsers to scrape JavaScript sites
Who this book is forData scientists, and web developers with a basic knowledge of Golang wanting to collect web data and analyze them for effective reporting and visualization.
More details
Language
English
Place of publication
Birmingham
United Kingdom
Target group
Professional and scholarly
US School Grade: College Graduate Student
Dimensions
Height: 235 mm
Width: 191 mm
Thickness: 7 mm
Weight
262 gr
ISBN-13
978-1-78961-570-8 (9781789615708)
Copyright in bibliographic data and cover images is held by Nielsen Book Services Limited or by the publishers or by their respective licensors: all rights reserved.
Schweitzer Classification
Other editions
Additional editions

Vincent Smith
Go Web Scraping Quick Start Guide
Implement the power of Go to scrape and crawl data from the web
E-Book
09/2024
Packt Publishing
€19.99
Available for download
Person
Vincent Smith has been a software engineer for 10 years, having worked in various fields from health and IT to machine learning, and large-scale web scrapers. He has worked for both large-scale Fortune 500 companies and start-ups alike and has sharpened his skills from the best of both worlds. While obtaining a degree in electrical engineering, he learned the foundations of writing good code through his Java courses. These basics helped spur his career in software development early in his professional career in order to provide support for his team. He fell in love with the process of teaching computers how to behave and set him on the path he still walks today.
Content
Table of Contents
Introducing Web Scraping and Go
The Request/Response Cycle
Web Scraping Etiquette
Parsing HTML
Web Scraping Navigation
Protecting Your Web Scraper
Scraping with Concurrency
Scraping at 100x
Introducing Web Scraping and Go
The Request/Response Cycle
Web Scraping Etiquette
Parsing HTML
Web Scraping Navigation
Protecting Your Web Scraper
Scraping with Concurrency
Scraping at 100x