About Me Contact Me Writings Projects Links Disclaimer |
CheepCheepAbstractA program that locates a product for sale on the Internet for under $1 with no shipping cost. The IdeaThe idea for this program came from an XKCD comic. In the comic, a guy writes a program to search for an item on the Internet every day that costs, in total, less than $1. It purchases one product each day. With $365 for the year, he gets a new delivery each day, with no idea what might be in it. As demonstrated in the comic, this is not a good idea. So, what kind of junk does this script find? Click Here to find out. This list updates daily. If you are VERY lucky, you might find something you like. ImplementationTo interface with this website, I wrote this in PHP. It uses Lynx as a screenscraper utility. Every day, it follows a simple algorithm:
I have had to add filters. Some websites specifically trick Google into claiming that they have prices that are $1.00. When you visit the website, the price is shown as "Contact for Quote" or something similar. Also, there are some products I specifically do not want this to find, such as stock photos or ebooks. Another slight annoyance is Google's "safe search" option. If I turn it on, the products that are located tend to be a very small set of products available. If I turn it off, it sometimes locates items with rather pornographic images. So, I had to make a compromise. I turned off safe search and completely removed images. To see product images, you must click the product description. DownloadWant to create a CheepCheep site of your own? Want to make this script a hell of a lot better? Want to simply see what kind of cheap junk is for sale on the Internet? Download the program here. Note: the filename is "cc.txt", but you will want to save it as "cc.php". This downloadable script will provide a list of products, inlcuding the name, price, and URL for each one. It will not automatically create a web page that displays the products. It will not automatically purchase the products. All that this downloadable script will do is provide a list of products. FAQThe following is a list of frequent questions that I receive (and the standard answers that I give.)
Others
With thousands of people reading the same XKCD comic, it is obvious that others have created their own versions of this program.
I will list them here as I find them:
|
Copyright ©1998-2024 C. Shaun Wagner.
All rights reserved.
|