If you have control over http://www.example.com server please create REST api or so for accessing data from this server. Even if you apply some looping trick to fetch all contacts that server may change some loading on that HTML page and your code will fail. So my suggestion is add service to http://www.example.com which will give you array of contacts (best way will be JSON array - as Obj provides built in library for parsing JSON) also you can add more functionality to this by adding limit parameter, filtering in REST API itself
Hope it helps !