Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display trends based on location #31

Open
dotlouis opened this issue Feb 18, 2015 · 0 comments
Open

Display trends based on location #31

dotlouis opened this issue Feb 18, 2015 · 0 comments

Comments

@dotlouis
Copy link
Owner

The extension would display the trends based on the user location (country wide).
http://hawttrends.appspot.com/api/terms/ returns a JSON object which contains an arrays of trends.
Each array has a key (number) which can be associated with a country.
To see the list of country and their corresponding keys, head over http://www.google.com/trends/hottrends/visualize and look for the source code of the select button
which I'll copypasta here for convenience.

 <select id="region-select">
            <option value="0">All Regions</option>
            <option class="sort" value="30">Argentina</option>
            <option class="sort" value="8">Australia</option>
            <option class="sort" value="44">Austria</option>
            <option class="sort" value="41">Belgium</option>
            <option class="sort" value="18">Brazil</option>
            <option class="sort" value="13">Canada</option>
            <option class="sort" value="38">Chile</option>
            <option class="sort" value="32">Colombia</option>
            <option class="sort" value="43">Czech Republic</option>
            <option class="sort" value="49">Denmark</option>
            <option class="sort" value="29">Egypt</option>
            <option class="sort" value="50">Finland</option>
            <option class="sort" value="16">France</option>
            <option class="sort" value="15">Germany</option>
            <option class="sort" value="48">Greece</option>
            <option class="sort" value="10">Hong Kong</option>
            <option class="sort" value="45">Hungary</option>
            <option class="sort" value="3">India</option>
            <option class="sort" value="19">Indonesia</option>
            <option class="sort" value="6">Israel</option>
            <option class="sort" value="27">Italy</option>
            <option class="sort" value="4">Japan</option>
            <option class="sort" value="37">Kenya</option>
            <option class="sort" value="34">Malaysia</option>
            <option class="sort" value="21">Mexico</option>
            <option class="sort" value="17">Netherlands</option>
            <option class="sort" value="52">Nigeria</option>
            <option class="sort" value="51">Norway</option>
            <option class="sort" value="25">Philippines</option>
            <option class="sort" value="31">Poland</option>
            <option class="sort" value="47">Portugal</option>
            <option class="sort" value="39">Romania</option>
            <option class="sort" value="14">Russia</option>
            <option class="sort" value="36">Saudi Arabia</option>
            <option class="sort" value="5">Singapore</option>
            <option class="sort" value="40">South Africa</option>
            <option class="sort" value="23">South Korea</option>
            <option class="sort" value="26">Spain</option>
            <option class="sort" value="42">Sweden</option>
            <option class="sort" value="46">Switzerland</option>
            <option class="sort" value="12">Taiwan</option>
            <option class="sort" value="33">Thailand</option>
            <option class="sort" value="24">Turkey</option>
            <option class="sort" value="35">Ukraine</option>
            <option class="sort" value="9">United Kingdom</option>
            <option class="sort" value="1">United States</option>
            <option class="sort" value="28">Vietnam</option>
        </select>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant