Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Go Web Scraping Quick Start Guide

You're reading from   Go Web Scraping Quick Start Guide Implement the power of Go to scrape and crawl data from the web

Arrow left icon
Product type Paperback
Published in Jan 2019
Publisher Packt
ISBN-13 9781789615708
Length 132 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Vincent Smith Vincent Smith
Author Profile Icon Vincent Smith
Vincent Smith
Arrow right icon
View More author details
Toc

Submitting forms

Up until this point, we have been able to request information from servers using only HTTP GET requests. These requests cover the vast majority of web scraping tasks that you will encounter as you build your own web scraper. However, there will come a time where you may need to submit some kind of form data in order to retrieve the information you are looking for. This form data could entail search queries, or a login screen, or any page that would require you to type into a box and click a Submit button.

For simple websites, this is done using an HTML <form> element, containing one or more <input> elements and a Submit button. This <form> element usually has attributes defining the action (where to send the <form> data), and a method (the HTTP method to use). By default, the web page will use an HTTP GET request to send the form data,...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime