![]() Same outcome, 302 page contents returned. Here's that code:įunction fetch_google($terms="sample search",$numpages=1,$user_agent='Mozilla/5.0 (Windows NT 6.1 rv:8.0) Gecko/20100101 Firefox/8.0')Īlso tried another implementation to get back just the URL, and then make a second cURL call after to the URL that was returned. I made sure my code had CURLOPT_FOLLOWLOCATION set to 1 to follow, but I still get back the contents of the 302 page. Tried implementing the methods listed on there, but it seems like these days, google takes your pretty URL and does a 302 redirect to a seemingly randomly generated nonsense URL that takes you to the image search results. Found a good question about this here: php Extract Best guess for this image result from google image search? Image Search is a middleman between your pictures and Google Images, allowing you to perform a reverse image search. For example, if you come across a nice image online which you may wish to find in a larger size, you can go to Google Images or services like TinEye and find. Found myself needing to be able to query google via a reverse image lookup to find out more about images I have on my server with unknown contents. Reverse Image Search - Chrome Web Store Reverse Image Search Recommended For You View all Google Translate 42,085 uBlock Origin 26,248 PayPal Honey: Automatic Coupons & Cash Back 168,578.
0 Comments
Leave a Reply. |