Company
Date Published
Author
Lizzie Siegle
Word count
1470
Language
English
Hacker News points
None

Summary

This article describes how to parse HTML for book quotes with Python, Beautiful Soup, and Twilio's WhatsApp API. The author starts by setting up a developer environment using Python 3, Flask, and Ngrok, then uses Beautiful Soup to scrape the Goodreads quotes page and extract data from its HTML. The scraped data is then cleaned and formatted into printable quotes that can be sent as an outbound WhatsApp message. The article also covers how to set up Twilio's API sandbox for WhatsApp and send the extracted quotes with Twilio's API.