Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialKyle Adkins
11,315 PointsSubmitting Forms with Node.js
Can anyone recommend good articles/blog posts/tutorials on submitting forms with Node.js, like Andrew Chalkley mentioned in this video? I've built a small web scraper before but I've had trouble figuring out form submission.
1 Answer
Camille Sébastien Niessen
2,653 PointsI use Express and Bodyparser to read post parameters from a send form. Bodyparser makes it possible to save the data out of the form into variables. Here is a clear tutorial about how you can use it.
Use ExpressJS to Get URL and POST Parameters
Hope it helps!
Kyle Adkins
11,315 PointsKyle Adkins
11,315 PointsI appreciate the response, but I didn't mean getting users' form input. I was asking how to create a web crawler that will automatically fill out & submit forms on other websites for the purpose of scraping those sites. Thanks anyway though!