You can either program or pay someone to program a web scraper that would pull the data from those sites and store it in a database. You can then run queries on your data and get the information you need. RPI is a fairly generic formula that follows a 25/50/25 calculation:
For NCAAB, road wins are 1.4 wins, losses are 0.6. Home wins are 0.6 wins, losses are 1.4. You can also derive the strength of schedule (SOS) from the bottom two factors in the RPI.