A simple solution to calculate page weight for a given url