Stories from the Web Crawling trenches in DOMDocument

The Ultimate DOMDocument Cheat Sheet for PHP

Author: Mohan Ganesan

Date: Oct 31, 2023

DOMDocument allows manipulating HTML/XML documents in PHP. This cheat sheet is a comprehensive reference for working with DOMDocument.

Scraping Data from Wikipedia with PHP

Author: Mohan Ganesan

Date: Dec 6, 2023

Web scraping is the process of extracting data from websites automatically. This article demonstrates how to scrape Wikipedia using PHP and cURL to get data on the Presidents of the United States.

Scraping Real Estate Listings From Realtor with PHP

Author: Mohan Ganesan

Date: Jan 9, 2024

Learn how to scrape real estate listings from Realtor.com using PHP and cURL. Extract data using DOMDocument and XPath.

Tired of getting blocked while scraping the web?

ProxiesAPI handles headless browsers and rotates proxies for you.
Get access to 1,000 free API credits, no credit card required!