Magento sitewatch module

在 ebuyer 上关注 OCZ 120GB RevoDrive SSD 很久了,它的价格一直在 £245 左右,比第二选择 OCZ 120GB Vertex 2E SSD 贵出近 £70。RevoDrive 比其他 SSD 的 data transfer rate 要快一倍左右,但我吃不准这一倍的快速能否在我的电脑上体现,所以一直犹豫着。

今天中午无意中上 ebuyer 又看了一下,发现 RevoDrive 突然降到 £230,这降价让我觉得多时的观望得到回报,刺激我立马就买了它。

下午,收到 dabs 的 newsletter,其中提示 DrayTek Vigor 2820 从 £155.78 降为 £134.99。我三天前刚从 broadbandbuyer 买过 Vigor 2820n,当时还上 dabs 比较过价格,所以对 Vigor 2820 系列比较敏感。幸好当时买的不是 Vigor 2820,否则现在有遗憾了,broadbandbuyer 目前 Vigor 2820 的价格是 £146.81 (还要另加 £4 邮费,dabs free shipping)。

废话讲了一堆。我想做一个 site watch 的程序,对一些想买又不急着买的产品价格进行跟踪,一旦价位合适,就在第一时间动手。象 ebuyer 故意每天有事没事搞一点价格波动,通常幅度在一两镑,纯属吊人眼球,如果我真每天用眼球去看,感觉就被人牵着鼻子走(或许这是一种市场手段?只是我不喜欢),所以想到用程序去看,直到一个实质性降价的时刻再用眼球去看。

Price watcher 有人做过,但只能跟踪几个名气大的网站,不对我胃口。我也写过一个简陋型的 sitewatch,但被我跟踪的网站 layout 变动比较快,它们一改我就要改程序,说明我的程序写得不好,所以用了几天就不用了。今天重拾这个话题,这次我想把 sitewatch 做成 Magento module。虽然 sitewatch module 跟 Magento ecommerce 风马牛不相及,只用到了 adminhtml 一些 GUI 和 crontab,但基于 Magento framework 的开发可以省我不少时间。

2 comments

  1. what is your suggestion in detail?

    my plan is: get the page, regex the content in concern, compare with history, if the change is significant (hit some preset conditions), notify.

    sitewatch can watch everything, not necessarily a well formatted html.

Leave a comment

Your email address will not be published. Required fields are marked *