Closed garyfeng closed 2 years ago
To-do:
--online_chip
or -oc
online_chip
logicAdditional thoughts:
online_chip
, download dateonline_chip
as part of the metadata?Usage:
-oc "keyword one, keyword two, keyword three"
--online_chip "keyword one, keyword two, keyword three"
We then parse the string by ,
into an array, and insert &chips=q:KEYWORD,online_chip:keyword+one,online_chip:keyword+two,online_chip:keyword+three
.
Note
g_1:
; I don't know if this makes any difference&chips=q:swimming,g_1:underwater:QMBk9Fu0UUs%3D,g_1:pool:pcMtMsPoOMM%3D,online_chips:dolphin+kick:ECAdxtgRNu8%3D
tested googleimagesdownload -k "swimming free style" -oc "female swimmer" -l 5
closing
As of Dec 2021, the google image search allows you to refine your searches with UI chip elements -- prepared tags based on the images in the research results.
For example, if you search for "swimming" using the standard google image search on browser, you will see chip UI elements right under the search bar, suggesting "free style", "underwater", "female swimmer", etc. Clicking on one or more of those will refine your search results -- this is reflected in the search URL, e.g., for:
https://www.google.com/search?q=swimming&tbm=isch&hl=en&chips=q:swimming,g_1:underwater:QMBk9Fu0UUs%3D,g_1:pool:pcMtMsPoOMM%3D,online_chips:dolphin+kick:ECAdxtgRNu8%3D&sa=X&ved=2ahUKEwjW8MKV44z1AhX_r3IEHaZkDYEQ4lYoAXoECAEQGA&biw=1807&bih=1247
Notes:
g_1
andonline_chip
seem interchangeable in my experiment. We can use them as part of the metadata for the images if possible.chips=q:
is always the same as theq=
, and it seems optionableg_1
andonline_chip
is optional; you are fine just delete the:QMBk9Fu0UUs%3D
and get the same result, for instance.