<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Gil Tomer on Medium]]></title>
        <description><![CDATA[Stories by Gil Tomer on Medium]]></description>
        <link>https://medium.com/@giltomer?source=rss-fe49fe6a01ff------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Q6al_b63PKjpxDhb.</url>
            <title>Stories by Gil Tomer on Medium</title>
            <link>https://medium.com/@giltomer?source=rss-fe49fe6a01ff------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 15:50:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@giltomer/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Can a Python code “guess” Wordle quiz? — Surprisingly — YES!]]></title>
            <link>https://medium.com/@giltomer/can-a-python-code-guess-wordle-quiz-surprisingly-yes-ce33ee0e3330?source=rss-fe49fe6a01ff------2</link>
            <guid isPermaLink="false">https://medium.com/p/ce33ee0e3330</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[google-trends]]></category>
            <category><![CDATA[wordle]]></category>
            <dc:creator><![CDATA[Gil Tomer]]></dc:creator>
            <pubDate>Sun, 13 Mar 2022 14:46:04 GMT</pubDate>
            <atom:updated>2022-03-13T14:46:04.676Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Can a Python code “guess” Wordle quiz? — Surprisingly — YES!</strong></h3><p>Well, I have successfully written a Python code that can guess the daily Wordle’s game words — in a very non-intuitive way.</p><p>You probably think that this is done by way of iteration over words from an English dictionary or by using some kind of wildcard search. This is all possible but is only an aid for finding the right word.</p><p>The code I have written does not need any information regarding word trials and their results (green and yellow characters).</p><p>Then how can this be done — you probably ask.</p><p>The code also works even before midnight in Israel, where I am located, i.e. before the game of the day started.</p><p>If you think that this is a kind of hack to the Wordle database and getting the words from there — think again!!</p><p>I have solved this by using Wisdom of the Crowd….</p><p>By using Google Trends API: Apparently a few hours after the daily game starts, many people are looking up the meaning of the word or very similar words. Therefore, by looking at rising search queries in countries where midnight already passed (e.g. Australia) I can see what people were looking there with search terms of “????? meaning”, i.e. a word of fine letters with the word meaning after it.</p><p>To make this work better I have scheduled the code to run at 4 AM in Australia, looking at search terms in the previous 4 hours.</p><p>Here is the code:</p><blockquote>from pytrends.request import TrendReq</blockquote><blockquote>import pandas as pd</blockquote><blockquote>import pytz</blockquote><blockquote>from datetime import datetime, date, time</blockquote><blockquote>au_hr = 1</blockquote><blockquote>while (au_hr != 4): # waiting for 4 AM</blockquote><blockquote>tz = pytz.timezone(‘Australia/Sydney’)</blockquote><blockquote>au_hr = datetime.now(tz).hour</blockquote><blockquote># get trends in AU</blockquote><blockquote>pytrends = TrendReq(hl=’en-US’, tz=120)</blockquote><blockquote>kw_list = [“meaning”] # list of keywords to get data</blockquote><blockquote>pytrends.build_payload(kw_list, geo=’AU’, cat=0, timeframe=’now 4-H’)</blockquote><blockquote>data = pytrends.related_queries()</blockquote><blockquote>rising = data[‘meaning’][‘rising’]</blockquote><blockquote>collect = rising[rising[‘query’].str.len() == 13]</blockquote><blockquote>print (‘AU(‘, tz, ‘):’)</blockquote><blockquote>display(collect)</blockquote><p>And an example output from 13/March/2022:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/241/1*ilD4zxpQUdCRvRbR7hvU9A.png" /><figcaption>Output for 13/March/2022</figcaption></figure><p>The daily word in Wordle was <strong>FOCUS</strong> — I have easily derived from the two rising search terms: POCUS and LOCUS.</p><p><strong>This is just another example of data available for use and insight that could be derived from it!</strong></p><p>Enjoy!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ce33ee0e3330" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>