The RSS Search Engine has moved to ctrlq.org/rss.

Web Scraping Amazon with PHP

This snippet of PHP code demonstrates web scraping. It reads a sample page from Amazon.com, compares the HTML text against certain class name and outputs that matched text in an RSS feed.

Parsing the Twitter Trends API

Use the following PHP code to determine all the locations (cities and countries) for which Twitter can offer local trends data The Twitter API offers the Trends availability data in JSON format that you can parse with the json_decode function of PHP.