Continuous Proxy Tester Using Ruby and phantomjs


Job Description

I have a web source that provides a list of proxies.

I need a Ruby application that downloads the proxies into a local PostgreSQL database on a regular basis (predefined interval).

Then, it has a # of threads (configurable), that spawn "phantomjs" threads in order to check that the proxies work. If the proxies work, the response time is recorded in the database.

The tester is always testing the proxies, so that at any time, the PostgreSQL database has the most up to date proxy information, about which proxies work, which don't, and what their response time is.