Use Nokogiri for assign pid