Oil rises ahead of weekly data for US stocks