Nifty capped a second straight weekly advance on Friday.