Skip to content

Commit

Permalink
change results in example test5.py
Browse files Browse the repository at this point in the history
  • Loading branch information
lleans committed Feb 26, 2021
1 parent 28c9fca commit 123feea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test5.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

google = Google()
res = google.search("https://media.discordapp.net/attachments/783138508038471701/813452582948306974/hl-18-1-900x1280.png?width=314&height=447")
#res = ascii2d.search(r'C:/kitUIN/img/tinted-good.jpg') # Search Image URL or path
#res = google.search(r'C:/kitUIN/img/tinted-good.jpg') # Search Image URL or path
logger.info(res.origin) # Original Data
logger.info(res.raw) # Raw Data
# Should start from index 2, because from there is matching image
logger.info(res.raw[2]) # <NormGoogle(title=["The Strongest Dull Prince's Secret Battle for the Throne ..."], urls=['https://kiryuu.co/the-strongest-dull-princes-secret-battle-for-the-throne-chapter-3-bahasa-indonesia/'], thumbnail=[None])>
logger.info(res.raw[2].thumbnail[0]) # None
logger.info(res.raw[2]) # <NormGoogle(title=["The Strongest Dull Prince's Secret Battle for the Throne ..."], urls=['https://kiryuu.co/the-strongest-dull-princes-secret-battle-for-the-throne-chapter-3-bahasa-indonesia/'], thumbnail=['No directable url'])>
logger.info(res.raw[2].thumbnail[0]) # No directable url
logger.info(res.raw[2].titles[0]) # The Strongest Dull Prince's Secret Battle for the Throne ...
logger.info(res.raw[2].urls[0]) # https://kiryuu.co/the-strongest-dull-princes-secret-battle-for-the-throne-chapter-3-bahasa-indonesia/

0 comments on commit 123feea

Please sign in to comment.