import requests
from bs4 import BeautifulSoup
import urlparse


url = "https://www.walmart.com/ip/54649026"
result = requests.get(url)
soup = BeautifulSoup(result.text, "html.parser")

images = [];
# This will look for a meta tag with the og:image property
og_image = (soup.find('meta', property='og:image') or
                    soup.find('meta', attrs={'name': 'og:image'}))
                    
print "og_image starts here:"                    
if og_image and og_image['content']:
    
  #  print og_image['content']
  #  print ''
    images.append(str(og_image['content']))

# This will look for a link tag with a rel attribute set to 'image_src'
thumbnail_spec = soup.find('link', rel='image_src')
print "thumbnial starts here:"
if thumbnail_spec and thumbnail_spec['href']:
    
  #  print thumbnail_spec['href']
  #  print ''
    images.append(str(thumbnail_spec['href']))
print "image starts here:"
image = """<img src="%s"><br />"""
for img in soup.findAll("img", src=True):
    
   # print image % urlparse.urljoin(url, img["src"])
 #   print ''
   
    images.append(str(img["src"]))

#print "Images list starts here:"
print images
return images
    
ef11e9300c4ddf5176440a8d0c0f8a716cd68ec4
import requests
from bs4 import BeautifulSoup
import urlparse


url = "https://www.walmart.com/ip/54649026"
result = requests.get(url)
soup = BeautifulSoup(result.text, "html.parser")

images = [];
# This will look for a meta tag with the og:image property
og_image = (soup.find('meta', property='og:image') or
                    soup.find('meta', attrs={'name': 'og:image'}))
                    
print "og_image starts here:"                    
if og_image and og_image['content']:
    
  #  print og_image['content']
  #  print ''
    images.append(str(og_image['content']))

# This will look for a link tag with a rel attribute set to 'image_src'
thumbnail_spec = soup.find('link', rel='image_src')
print "thumbnial starts here:"
if thumbnail_spec and thumbnail_spec['href']:
    
  #  print thumbnail_spec['href']
  #  print ''
    images.append(str(thumbnail_spec['href']))
print "image starts here:"
image = """<img src="%s"><br />"""
for img in soup.findAll("img", src=True):
    
   # print image % urlparse.urljoin(url, img["src"])
 #   print ''
   
    images.append(str(img["src"]))

#print "Images list starts here:"
print images
return images
    