This is the code repository for Go Web Scraping Quick Start Guide, published by Packt.
Implement the power of Go to scrape and crawl data from the web
Web 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.
This book covers the following exciting features:
- 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
If you feel this book is for you, get your copy today!
All of the code is organized into folders. For example, Chapter02.
The code will look like the following:
POST /login HTTP/1.1
Host: myprotectedsite.com
Content-Type: application/x-www-form-urlencoded
Content-Length: 38
username=myuser&password=supersecretpw
Following is what you need for this book: Data scientists, and web developers with a basic knowledge of Golang wanting to collect web data and analyze them for effective reporting and visualization.
With the following software and hardware list you can run all code files present in the book (Chapter 1-8).
Chapter | Software required | OS required |
---|---|---|
1-8 | Git (2.0+) | Windows, Mac OS X, and Linux |
1-8 | GO (1.11) | Windows, Mac OS X, and Linux |
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.
Click here if you have any feedback or suggestions.
If you have already purchased a print or Kindle version of this book, you can get a DRM-free PDF version at no cost.
Simply click on the link to claim your free PDF.