python-3.xweb-scrapingsearchbinggoogle-image-search

How do I do a search in the bing image window from the url?


search from url how do i search here !? search from url with picture url in bing image search enter image description here enable search with image url, from the url in the same place that appears in the image

normlly in google lens we use this link https://lens.google.com/uploadbyurl?url=<image_url> how can i use bing image search like this type of link please help me


Solution

  • Try following:

    import urllib.parse
    
    url = "https://i.sstatic.net/AaUJO.jpg"
    encoded_url = urllib.parse.quote(url, safe='')
    url = "https://www.bing.com/images/search?view=detailv2&iss=sbi&q=imgurl:"+ encoded_url