Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You can type nonsense words into this --- words for which Google will say no page in its entire corpus has a match --- and get color palettes back. What's it actually doing?


Looks like Google image search always has a fallback for a nonsense search query, and the images between Google and Picular exactly match (if you hover over the bottom-right of any color card, it shows the source image):

https://www.google.com/search?tbm=isch&q=sdlkfjsldkfjsldfkj

https://picular.co/sdlkfjsldkfjsldfkj

If you put it in quotes, though, Google gives no results and Picular crashes (500 internal server error from an XHR):

https://www.google.com/search?tbm=isch&q="sdlkfjsldkfjsldfkj...

https://picular.co/"sdlkfjsldkfjsldfkj"


Fixed! There's now a color palette for "sdlkfjsldkfjsldfkj" ;)


What did you change?

My guess is you're still doing a Google Image search, but when it returns no results, you return something random and cache this query for consistency. Is that about right?.


Good guess! That's almost right, but there's no cache involved. Random colors based on a seed.


Are the palettes accurate? Did you try a Google image search?


Machine learning


I was kinda disappointed when I realized when you search it seems to basically only do a simple image search (ala Google) and return the primary color of the individual images, as can be seen by hovering over the small icon in each color result.

I would not really call that machine learning, since it's basically an image search engine with a color filter.


If that's what it's doing, how is it giving me colors for nonsense words?

I wonder if it's just automatically accepting the spelling suggestion Google provides for searches?


It's probably using Google custom search. I think that's the only way you can actually get Google search results as an API.

Perhaps custom search displays differing results?


You can scrape google.com with a lot of awkward ban evading.

The fact that it works for non existing search results shows that it's ML



well I typed in config and got nothing.


It's also filtering for safe search. So, there are results that are assuredly indexed by Google, but the query stalls the page.

If you try linking to https://picular.co/four+letter+words

...some of those four letter words won't return results, even if they do exist. Probably because they (futurememories.se) don't want to associate their product with lewd profanity, if/when people start sharing random links on social media.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: