title: How to convert data in particular html tag to dictionary
body: <p>I am trying to scrap google images page by using following peace of code.</p>
  
  <pre><code># -*- coding: utf-8 -*-
  import urllib2
  from bs4 import BeautifulSoup
  
  site= "https://www.google.co.in/search?q=batman+wallpaper+hd&amp;source=lnms&amp;tbm=isch"
  
  hdr = {'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.64 Safari/537.11',
         'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
         'Accept-Charset': 'ISO-8859-1,utf-8;q=0.7,*;q=0.3',
         'Accept-Encoding': 'none',
         'Accept-Language': 'en-US,en;q=0.8',
         'Connection': 'keep-alive'}
  
  
  req = urllib2.Request(site,headers=hdr)
  
  page = urllib2.urlopen(req)
  
  soup = BeautifulSoup(page, 'html.parser')
  
  for child in soup.find("div", {"data-ri":"16"}).children:
      print child
  </code></pre>
  
  <p>And getting this output</p>
  
  <pre><code>&lt;a class="rg_l" href="#" jsaction="fire.ivg_o;mouseover:str.hmov;mouseout:str.hmou" jsname="hSRGPd" rel="noopener" style="background:rgb(11,18,24)"&gt;&lt;img alt="Image result for batman wallpaper hd" class="rg_ic rg_i" jsaction="load:str.tbn" name="NCsi46a6Dm2_HM:" onload="typeof google==='object'&amp;amp;&amp;amp;google.aft&amp;amp;&amp;amp;google.aft(this)"/&gt;&lt;div class="_aOd rg_ilm"&gt;&lt;div class="rg_ilmbg"&gt;&lt;span class="rg_ilmn"&gt; 2880 × 1800 - wallpapertag.com &lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/a&gt;
  &lt;div class="rg_meta notranslate" jsname="ik8THc"&gt;{"id":"NCsi46a6Dm2_HM:","isu":"wallpapertag.com","itg":0,"ity":"jpg","oh":1800,"ou":"https://wallpapertag.com/wallpaper/full/b/8/5/84668-vertical-batman-wallpaper-hd-2880x1800-full-hd.jpg","ow":2880,"pt":"Batman wallpaper HD ·① Download free High Resolution wallpapers ...","rid":"vLHnAF3_eWR-KM","rmt":0,"rt":0,"ru":"https://wallpapertag.com/batman-wallpaper-hd","s":"2880x1800 Batman Wallpapers - HD Wallpapers Inn","st":"Wallpapertag.com","th":177,"tu":"https://encrypted-tbn0.gstatic.com/images?q\u003dtbn:ANd9GcSAIP3lqGZ0a2wkgqIecGZtCEMKAx8Qk5lp89FaV6ovmygejjf1YA","tw":284}&lt;/div&gt;
  </code></pre>
  
  <p>I want to read value of "ou" tag which is link to the wallpaper, can someone please help me parsing that link in variable. Beginner in python. Thanks in advance.</p>