Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Scraping Data From the Web!
You have completed Scraping Data From the Web!
Preview
Forms are a big part of many websites. Scrapy provides a FormRequest class for handling them.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
sites that don't require interaction.
0:00
But many sites do indeed require
some sort of interaction.
0:01
For example,
logging in to a site with a username and
0:04
password requires a form submission.
0:08
There are many different reasons for
0:11
needing to work with forms when
getting and scraping data.
0:12
Let's head back into our code to
take a look at some techniques.
0:16
Our Horse Land site is
hosted on GitHub pages,
0:21
which doesn't support
backend technologies.
0:25
So we'll be using a bit of a workaround
from Formspree to handle the form posts.
0:28
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up