ryanmcgrath / twython

Actively maintained, pure Python wrapper for the Twitter API. Supports both normal and streaming Twitter APIs.
http://stackoverflow.com/questions/tagged/twython
MIT License
1.85k stars 397 forks source link

New trend locations are not populated #219

Closed Menelion closed 11 years ago

Menelion commented 11 years ago

Hello,
We've recently migrated to Twython from another library, but the issue is still there. The thing is that Twitter has added new trend locations such as Ukraine and Poland, but they aren't returned in the array.
Twitter claims that everything comes normally on their side.
Could you please comment this situation from your point of view? Thanks!

michaelhelmick commented 11 years ago

Hello,

By making the following authenticated call:

from twython import Twython
t = Twython(APP_KEY, APP_SECRET, OAUTH_TOKEN, OAUTH_TOKEN_SECRET)

t.get_available_trends()

I received this data: https://gist.github.com/michaelhelmick/5774461

I found the following keys for Poland and Ukraine in the array:

{
    u 'name': u 'Poland',
    u 'countryCode': u 'PL',
    u 'url': u 'http://where.yahooapis.com/v1/place/23424923',
    u 'country': u 'Poland',
    u 'parentid': 1,
    u 'placeType': {
        u 'code': 12,
        u 'name': u 'Country'
    },
    u 'woeid': 23424923
},
{
    u 'name': u 'Ukraine',
    u 'countryCode': u 'UA',
    u 'url': u 'http://where.yahooapis.com/v1/place/23424976',
    u 'country': u 'Ukraine',
    u 'parentid': 1,
    u 'placeType': {
        u 'code': 12,
        u 'name': u 'Country'
    },
    u 'woeid': 23424976
}
michaelhelmick commented 11 years ago

Please check this issue on GitHub, the previous email you received might not have the code in it because I sent it too early >_> haha

Menelion commented 11 years ago

@michaelhelmick, thanks Mike. So something goes wrong in our app, I guess. Could you help, please? It's just a mystery :(. These lines are scattered through the app, but anyway I'll provide them together so you see the logic:

self.TwitterApi = Twython(str(self.config['oauth']['twitterKey']), str(self.config['oauth']['twitterSecret']), self.config['oauth']['userKey'], self.config['oauth']['userSecret'])
locations = self.TwitterApi.get_available_trends()

And here's what I see:

[{u'name': u'Worldwide', u'countryCode': None, u'url': u'http://where.yahooapis.com/v1/place/1', u'woeid': 1, u'parentid': 0, u'placeType': {u'code': 19, u'name': u'Supername'}, u'country': u''}, {u'name': u'Winnipeg', u'countryCode': u'CA', u'url': u'http://where.yahooapis.com/v1/place/2972', u'woeid': 2972, u'parentid': 23424775, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Canada'}, {u'name': u'Ottawa', u'countryCode': u'CA', u'url': u'http://where.yahooapis.com/v1/place/3369', u'woeid': 3369, u'parentid': 23424775, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Canada'}, {u'name': u'Quebec', u'countryCode': u'CA', u'url': u'http://where.yahooapis.com/v1/place/3444', u'woeid': 3444, u'parentid': 23424775, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Canada'}, {u'name': u'Montreal', u'countryCode': u'CA', u'url': u'http://where.yahooapis.com/v1/place/3534', u'woeid': 3534, u'parentid': 23424775, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Canada'}, {u'name': u'Toronto', u'countryCode': u'CA', u'url': u'http://where.yahooapis.com/v1/place/4118', u'woeid': 4118, u'parentid': 23424775, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Canada'}, {u'name': u'Edmonton', u'countryCode': u'CA', u'url': u'http://where.yahooapis.com/v1/place/8676', u'woeid': 8676, u'parentid': 23424775, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Canada'}, {u'name': u'Calgary', u'countryCode': u'CA', u'url': u'http://where.yahooapis.com/v1/place/8775', u'woeid': 8775, u'parentid': 23424775, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Canada'}, {u'name': u'Vancouver', u'countryCode': u'CA', u'url': u'http://where.yahooapis.com/v1/place/9807', u'woeid': 9807, u'parentid': 23424775, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Canada'}, {u'name': u'Birmingham', u'countryCode': u'GB', u'url': u'http://where.yahooapis.com/v1/place/12723', u'woeid': 12723, u'parentid': 23424975, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'United Kingdom'}, {u'name': u'Brighton', u'countryCode': u'GB', u'url': u'http://where.yahooapis.com/v1/place/13911', u'woeid': 13911, u'parentid': 23424975, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'United Kingdom'}, {u'name': u'Bristol', u'countryCode': u'GB', u'url': u'http://where.yahooapis.com/v1/place/13963', u'woeid': 13963, u'parentid': 23424975, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'United Kingdom'}, {u'name': u'Cardiff', u'countryCode': u'GB', u'url': u'http://where.yahooapis.com/v1/place/15127', u'woeid': 15127, u'parentid': 23424975, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'United Kingdom'}, {u'name': u'Edinburgh', u'countryCode': u'GB', u'url': u'http://where.yahooapis.com/v1/place/19344', u'woeid': 19344, u'parentid': 23424975, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'United Kingdom'}, {u'name': u'Glasgow', u'countryCode': u'GB', u'url': u'http://where.yahooapis.com/v1/place/21125', u'woeid': 21125, u'parentid': 23424975, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'United Kingdom'}, {u'name': u'Leeds', u'countryCode': u'GB', u'url': u'http://where.yahooapis.com/v1/place/26042', u'woeid': 26042, u'parentid': 23424975, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'United Kingdom'}, {u'name': u'Leicester', u'countryCode': u'GB', u'url': u'http://where.yahooapis.com/v1/place/26062', u'woeid': 26062, u'parentid': 23424975, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'United Kingdom'}, {u'name': u'Liverpool', u'countryCode': u'GB', u'url': u'http://where.yahooapis.com/v1/place/26734', u'woeid': 26734, u'parentid': 23424975, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'United Kingdom'}, {u'name': u'Manchester', u'countryCode': u'GB', u'url': u'http://where.yahooapis.com/v1/place/28218', u'woeid': 28218, u'parentid': 23424975, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'United Kingdom'}, {u'name': u'Newcastle', u'countryCode': u'GB', u'url': u'http://where.yahooapis.com/v1/place/30079', u'woeid': 30079, u'parentid': 23424975, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'United Kingdom'}, {u'name': u'Nottingham', u'countryCode': u'GB', u'url': u'http://where.yahooapis.com/v1/place/30720', u'woeid': 30720, u'parentid': 23424975, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'United Kingdom'}, {u'name': u'Portsmouth', u'countryCode': u'GB', u'url': u'http://where.yahooapis.com/v1/place/32452', u'woeid': 32452, u'parentid': 23424975, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'United Kingdom'}, {u'name': u'Sheffield', u'countryCode': u'GB', u'url': u'http://where.yahooapis.com/v1/place/34503', u'woeid': 34503, u'parentid': 23424975, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'United Kingdom'}, {u'name': u'London', u'countryCode': u'GB', u'url': u'http://where.yahooapis.com/v1/place/44418', u'woeid': 44418, u'parentid': 23424975, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'United Kingdom'}, {u'name': u'Belfast', u'countryCode': u'GB', u'url': u'http://where.yahooapis.com/v1/place/44544', u'woeid': 44544, u'parentid': 23424975, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'United Kingdom'}, {u'name': u'Santo Domingo', u'countryCode': u'DO', u'url': u'http://where.yahooapis.com/v1/place/76456', u'woeid': 76456, u'parentid': 23424800, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Dominican Republic'}, {u'name': u'Mexico City', u'countryCode': u'MX', u'url': u'http://where.yahooapis.com/v1/place/116545', u'woeid': 116545, u'parentid': 23424900, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Mexico'}, {u'name': u'Guadalajara', u'countryCode': u'MX', u'url': u'http://where.yahooapis.com/v1/place/124162', u'woeid': 124162, u'parentid': 23424900, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Mexico'}, {u'name': u'Le\xf3n', u'countryCode': u'MX', u'url': u'http://where.yahooapis.com/v1/place/131068', u'woeid': 131068, u'parentid': 23424900, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Mexico'}, {u'name': u'Monterrey', u'countryCode': u'MX', u'url': u'http://where.yahooapis.com/v1/place/134047', u'woeid': 134047, u'parentid': 23424900, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Mexico'}, {u'name': u'Puebla', u'countryCode': u'MX', u'url': u'http://where.yahooapis.com/v1/place/137612', u'woeid': 137612, u'parentid': 23424900, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Mexico'}, {u'name': u'Tijuana', u'countryCode': u'MX', u'url': u'http://where.yahooapis.com/v1/place/149361', u'woeid': 149361, u'parentid': 23424900, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Mexico'}, {u'name': u'Mendoza', u'countryCode': u'AR', u'url': u'http://where.yahooapis.com/v1/place/332471', u'woeid': 332471, u'parentid': 23424747, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Argentina'}, {u'name': u'Santiago', u'countryCode': u'CL', u'url': u'http://where.yahooapis.com/v1/place/349859', u'woeid': 349859, u'parentid': 23424782, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Chile'}, {u'name': u'Concepcion', u'countryCode': u'CL', u'url': u'http://where.yahooapis.com/v1/place/349860', u'woeid': 349860, u'parentid': 23424782, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Chile'}, {u'name': u'Valparaiso', u'countryCode': u'CL', u'url': u'http://where.yahooapis.com/v1/place/349861', u'woeid': 349861, u'parentid': 23424782, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Chile'}, {u'name': u'Bogot\xe1', u'countryCode': u'CO', u'url': u'http://where.yahooapis.com/v1/place/368148', u'woeid': 368148, u'parentid': 23424787, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Colombia'}, {u'name': u'Caracas', u'countryCode': u'VE', u'url': u'http://where.yahooapis.com/v1/place/395269', u'woeid': 395269, u'parentid': 23424982, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Venezuela'}, {u'name': u'Maracaibo', u'countryCode': u'VE', u'url': u'http://where.yahooapis.com/v1/place/395270', u'woeid': 395270, u'parentid': 23424982, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Venezuela'}, {u'name': u'Valencia', u'countryCode': u'VE', u'url': u'http://where.yahooapis.com/v1/place/395272', u'woeid': 395272, u'parentid': 23424982, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Venezuela'}, {u'name': u'Lima', u'countryCode': u'PE', u'url': u'http://where.yahooapis.com/v1/place/418440', u'woeid': 418440, u'parentid': 23424919, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Peru'}, {u'name': u'Bras\xedlia', u'countryCode': u'BR', u'url': u'http://where.yahooapis.com/v1/place/455819', u'woeid': 455819, u'parentid': 23424768, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Brazil'}, {u'name': u'Bel\xe9m', u'countryCode': u'BR', u'url': u'http://where.yahooapis.com/v1/place/455820', u'woeid': 455820, u'parentid': 23424768, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Brazil'}, {u'name': u'Belo Horizonte', u'countryCode': u'BR', u'url': u'http://where.yahooapis.com/v1/place/455821', u'woeid': 455821, u'parentid': 23424768, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Brazil'}, {u'name': u'Curitiba', u'countryCode': u'BR', u'url': u'http://where.yahooapis.com/v1/place/455822', u'woeid': 455822, u'parentid': 23424768, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Brazil'}, {u'name': u'Porto Alegre', u'countryCode': u'BR', u'url': u'http://where.yahooapis.com/v1/place/455823', u'woeid': 455823, u'parentid': 23424768, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Brazil'}, {u'name': u'Recife', u'countryCode': u'BR', u'url': u'http://where.yahooapis.com/v1/place/455824', u'woeid': 455824, u'parentid': 23424768, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Brazil'}, {u'name': u'Rio de Janeiro', u'countryCode': u'BR', u'url': u'http://where.yahooapis.com/v1/place/455825', u'woeid': 455825, u'parentid': 23424768, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Brazil'}, {u'name': u'Salvador', u'countryCode': u'BR', u'url': u'http://where.yahooapis.com/v1/place/455826', u'woeid': 455826, u'parentid': 23424768, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Brazil'}, {u'name': u'S\xe3o Paulo', u'countryCode': u'BR', u'url': u'http://where.yahooapis.com/v1/place/455827', u'woeid': 455827, u'parentid': 23424768, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Brazil'}, {u'name': u'Campinas', u'countryCode': u'BR', u'url': u'http://where.yahooapis.com/v1/place/455828', u'woeid': 455828, u'parentid': 23424768, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Brazil'}, {u'name': u'Fortaleza', u'countryCode': u'BR', u'url': u'http://where.yahooapis.com/v1/place/455830', u'woeid': 455830, u'parentid': 23424768, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Brazil'}, {u'name': u'Goi\xe2nia', u'countryCode': u'BR', u'url': u'http://where.yahooapis.com/v1/place/455831', u'woeid': 455831, u'parentid': 23424768, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Brazil'}, {u'name': u'Manaus', u'countryCode': u'BR', u'url': u'http://where.yahooapis.com/v1/place/455833', u'woeid': 455833, u'parentid': 23424768, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Brazil'}, {u'name': u'S\xe3o Lu\xeds', u'countryCode': u'BR', u'url': u'http://where.yahooapis.com/v1/place/455834', u'woeid': 455834, u'parentid': 23424768, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Brazil'}, {u'name': u'Guarulhos', u'countryCode': u'BR', u'url': u'http://where.yahooapis.com/v1/place/455867', u'woeid': 455867, u'parentid': 23424768, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Brazil'}, {u'name': u'C\xf3rdoba', u'countryCode': u'AR', u'url': u'http://where.yahooapis.com/v1/place/466861', u'woeid': 466861, u'parentid': 23424747, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Argentina'}, {u'name': u'Rosario', u'countryCode': u'AR', u'url': u'http://where.yahooapis.com/v1/place/466862', u'woeid': 466862, u'parentid': 23424747, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Argentina'}, {u'name': u'Barquisimeto', u'countryCode': u'VE', u'url': u'http://where.yahooapis.com/v1/place/468382', u'woeid': 468382, u'parentid': 23424982, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Venezuela'}, {u'name': u'Buenos Aires', u'countryCode': u'AR', u'url': u'http://where.yahooapis.com/v1/place/468739', u'woeid': 468739, u'parentid': 23424747, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Argentina'}, {u'name': u'Dublin', u'countryCode': u'IE', u'url': u'http://where.yahooapis.com/v1/place/560743', u'woeid': 560743, u'parentid': 23424803, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Ireland'}, {u'name': u'Bordeaux', u'countryCode': u'FR', u'url': u'http://where.yahooapis.com/v1/place/580778', u'woeid': 580778, u'parentid': 23424819, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'France'}, {u'name': u'Lille', u'countryCode': u'FR', u'url': u'http://where.yahooapis.com/v1/place/608105', u'woeid': 608105, u'parentid': 23424819, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'France'}, {u'name': u'Lyon', u'countryCode': u'FR', u'url': u'http://where.yahooapis.com/v1/place/609125', u'woeid': 609125, u'parentid': 23424819, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'France'}, {u'name': u'Marseille', u'countryCode': u'FR', u'url': u'http://where.yahooapis.com/v1/place/610264', u'woeid': 610264, u'parentid': 23424819, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'France'}, {u'name': u'Montpellier', u'countryCode': u'FR', u'url': u'http://where.yahooapis.com/v1/place/612977', u'woeid': 612977, u'parentid': 23424819, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'France'}, {u'name': u'Nantes', u'countryCode': u'FR', u'url': u'http://where.yahooapis.com/v1/place/613858', u'woeid': 613858, u'parentid': 23424819, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'France'}, {u'name': u'Paris', u'countryCode': u'FR', u'url': u'http://where.yahooapis.com/v1/place/615702', u'woeid': 615702, u'parentid': 23424819, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'France'}, {u'name': u'Rennes', u'countryCode': u'FR', u'url': u'http://where.yahooapis.com/v1/place/619163', u'woeid': 619163, u'parentid': 23424819, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'France'}, {u'name': u'Strasbourg', u'countryCode': u'FR', u'url': u'http://where.yahooapis.com/v1/place/627791', u'woeid': 627791, u'parentid': 23424819, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'France'}, {u'name': u'Toulouse', u'countryCode': u'FR', u'url': u'http://where.yahooapis.com/v1/place/628886', u'woeid': 628886, u'parentid': 23424819, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'France'}, {u'name': u'Berlin', u'countryCode': u'DE', u'url': u'http://where.yahooapis.com/v1/place/638242', u'woeid': 638242, u'parentid': 23424829, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Germany'}, {u'name': u'Bremen', u'countryCode': u'DE', u'url': u'http://where.yahooapis.com/v1/place/641142', u'woeid': 641142, u'parentid': 23424829, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Germany'}, {u'name': u'Dortmund', u'countryCode': u'DE', u'url': u'http://where.yahooapis.com/v1/place/645458', u'woeid': 645458, u'parentid': 23424829, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Germany'}, {u'name': u'Dresden', u'countryCode': u'DE', u'url': u'http://where.yahooapis.com/v1/place/645686', u'woeid': 645686, u'parentid': 23424829, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Germany'}, {u'name': u'Dusseldorf', u'countryCode': u'DE', u'url': u'http://where.yahooapis.com/v1/place/646099', u'woeid': 646099, u'parentid': 23424829, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Germany'}, {u'name': u'Essen', u'countryCode': u'DE', u'url': u'http://where.yahooapis.com/v1/place/648820', u'woeid': 648820, u'parentid': 23424829, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Germany'}, {u'name': u'Frankfurt', u'countryCode': u'DE', u'url': u'http://where.yahooapis.com/v1/place/650272', u'woeid': 650272, u'parentid': 23424829, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Germany'}, {u'name': u'Hamburg', u'countryCode': u'DE', u'url': u'http://where.yahooapis.com/v1/place/656958', u'woeid': 656958, u'parentid': 23424829, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Germany'}, {u'name': u'Cologne', u'countryCode': u'DE', u'url': u'http://where.yahooapis.com/v1/place/667931', u'woeid': 667931, u'parentid': 23424829, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Germany'}, {u'name': u'Leipzig', u'countryCode': u'DE', u'url': u'http://where.yahooapis.com/v1/place/671072', u'woeid': 671072, u'parentid': 23424829, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Germany'}, {u'name': u'Munich', u'countryCode': u'DE', u'url': u'http://where.yahooapis.com/v1/place/676757', u'woeid': 676757, u'parentid': 23424829, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Germany'}, {u'name': u'Stuttgart', u'countryCode': u'DE', u'url': u'http://where.yahooapis.com/v1/place/698064', u'woeid': 698064, u'parentid': 23424829, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Germany'}, {u'name': u'Milan', u'countryCode': u'IT', u'url': u'http://where.yahooapis.com/v1/place/718345', u'woeid': 718345, u'parentid': 23424853, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Italy'}, {u'name': u'Naples', u'countryCode': u'IT', u'url': u'http://where.yahooapis.com/v1/place/719258', u'woeid': 719258, u'parentid': 23424853, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Italy'}, {u'name': u'Rome', u'countryCode': u'IT', u'url': u'http://where.yahooapis.com/v1/place/721943', u'woeid': 721943, u'parentid': 23424853, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Italy'}, {u'name': u'Turin', u'countryCode': u'IT', u'url': u'http://where.yahooapis.com/v1/place/725003', u'woeid': 725003, u'parentid': 23424853, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Italy'}, {u'name': u'Den Haag', u'countryCode': u'NL', u'url': u'http://where.yahooapis.com/v1/place/726874', u'woeid': 726874, u'parentid': 23424909, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Netherlands'}, {u'name': u'Amsterdam', u'countryCode': u'NL', u'url': u'http://where.yahooapis.com/v1/place/727232', u'woeid': 727232, u'parentid': 23424909, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Netherlands'}, {u'name': u'Rotterdam', u'countryCode': u'NL', u'url': u'http://where.yahooapis.com/v1/place/733075', u'woeid': 733075, u'parentid': 23424909, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Netherlands'}, {u'name': u'Barcelona', u'countryCode': u'ES', u'url': u'http://where.yahooapis.com/v1/place/753692', u'woeid': 753692, u'parentid': 23424950, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Spain'}, {u'name': u'Madrid', u'countryCode': u'ES', u'url': u'http://where.yahooapis.com/v1/place/766273', u'woeid': 766273, u'parentid': 23424950, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Spain'}, {u'name': u'Malaga', u'countryCode': u'ES', u'url': u'http://where.yahooapis.com/v1/place/766356', u'woeid': 766356, u'parentid': 23424950, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Spain'}, {u'name': u'Seville', u'countryCode': u'ES', u'url': u'http://where.yahooapis.com/v1/place/774508', u'woeid': 774508, u'parentid': 23424950, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Spain'}, {u'name': u'Valencia', u'countryCode': u'ES', u'url': u'http://where.yahooapis.com/v1/place/776688', u'woeid': 776688, u'parentid': 23424950, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Spain'}, {u'name': u'Zaragoza', u'countryCode': u'ES', u'url': u'http://where.yahooapis.com/v1/place/779063', u'woeid': 779063, u'parentid': 23424950, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Spain'}, {u'name': u'Stockholm', u'countryCode': u'SE', u'url': u'http://where.yahooapis.com/v1/place/906057', u'woeid': 906057, u'parentid': 23424954, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Sweden'}, {u'name': u'Bekasi', u'countryCode': u'ID', u'url': u'http://where.yahooapis.com/v1/place/1030077', u'woeid': 1030077, u'parentid': 23424846, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Indonesia'}, {u'name': u'Surabaya', u'countryCode': u'ID', u'url': u'http://where.yahooapis.com/v1/place/1044316', u'woeid': 1044316, u'parentid': 23424846, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Indonesia'}, {u'name': u'Bandung', u'countryCode': u'ID', u'url': u'http://where.yahooapis.com/v1/place/1047180', u'woeid': 1047180, u'parentid': 23424846, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Indonesia'}, {u'name': u'Jakarta', u'countryCode': u'ID', u'url': u'http://where.yahooapis.com/v1/place/1047378', u'woeid': 1047378, u'parentid': 23424846, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Indonesia'}, {u'name': u'Singapore', u'countryCode': u'SG', u'url': u'http://where.yahooapis.com/v1/place/1062617', u'woeid': 1062617, u'parentid': 23424948, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Singapore'}, {u'name': u'Perth', u'countryCode': u'AU', u'url': u'http://where.yahooapis.com/v1/place/1098081', u'woeid': 1098081, u'parentid': 23424748, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Australia'}, {u'name': u'Adelaide', u'countryCode': u'AU', u'url': u'http://where.yahooapis.com/v1/place/1099805', u'woeid': 1099805, u'parentid': 23424748, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Australia'}, {u'name': u'Brisbane', u'countryCode': u'AU', u'url': u'http://where.yahooapis.com/v1/place/1100661', u'woeid': 1100661, u'parentid': 23424748, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Australia'}, {u'name': u'Canberra', u'countryCode': u'AU', u'url': u'http://where.yahooapis.com/v1/place/1100968', u'woeid': 1100968, u'parentid': 23424748, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Australia'}, {u'name': u'Darwin', u'countryCode': u'AU', u'url': u'http://where.yahooapis.com/v1/place/1101597', u'woeid': 1101597, u'parentid': 23424748, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Australia'}, {u'name': u'Melbourne', u'countryCode': u'AU', u'url': u'http://where.yahooapis.com/v1/place/1103816', u'woeid': 1103816, u'parentid': 23424748, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Australia'}, {u'name': u'Sydney', u'countryCode': u'AU', u'url': u'http://where.yahooapis.com/v1/place/1105779', u'woeid': 1105779, u'parentid': 23424748, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Australia'}, {u'name': u'Kitakyushu', u'countryCode': u'JP', u'url': u'http://where.yahooapis.com/v1/place/1110809', u'woeid': 1110809, u'parentid': 23424856, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Japan'}, {u'name': u'Chiba', u'countryCode': u'JP', u'url': u'http://where.yahooapis.com/v1/place/1117034', u'woeid': 1117034, u'parentid': 23424856, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Japan'}, {u'name': u'Fukuoka', u'countryCode': u'JP', u'url': u'http://where.yahooapis.com/v1/place/1117099', u'woeid': 1117099, u'parentid': 23424856, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Japan'}, {u'name': u'Hiroshima', u'countryCode': u'JP', u'url': u'http://where.yahooapis.com/v1/place/1117227', u'woeid': 1117227, u'parentid': 23424856, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Japan'}, {u'name': u'Kawasaki', u'countryCode': u'JP', u'url': u'http://where.yahooapis.com/v1/place/1117502', u'woeid': 1117502, u'parentid': 23424856, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Japan'}, {u'name': u'Kobe', u'countryCode': u'JP', u'url': u'http://where.yahooapis.com/v1/place/1117545', u'woeid': 1117545, u'parentid': 23424856, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Japan'}, {u'name': u'Nagoya', u'countryCode': u'JP', u'url': u'http://where.yahooapis.com/v1/place/1117817', u'woeid': 1117817, u'parentid': 23424856, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Japan'}, {u'name': u'Sapporo', u'countryCode': u'JP', u'url': u'http://where.yahooapis.com/v1/place/1118108', u'woeid': 1118108, u'parentid': 23424856, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Japan'}, {u'name': u'Sendai', u'countryCode': u'JP', u'url': u'http://where.yahooapis.com/v1/place/1118129', u'woeid': 1118129, u'parentid': 23424856, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Japan'}, {u'name': u'Takamatsu', u'countryCode': u'JP', u'url': u'http://where.yahooapis.com/v1/place/1118285', u'woeid': 1118285, u'parentid': 23424856, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Japan'}, {u'name': u'Tokyo', u'countryCode': u'JP', u'url': u'http://where.yahooapis.com/v1/place/1118370', u'woeid': 1118370, u'parentid': 23424856, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Japan'}, {u'name': u'Yokohama', u'countryCode': u'JP', u'url': u'http://where.yahooapis.com/v1/place/1118550', u'woeid': 1118550, u'parentid': 23424856, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Japan'}, {u'name': u'Busan', u'countryCode': u'KR', u'url': u'http://where.yahooapis.com/v1/place/1132447', u'woeid': 1132447, u'parentid': 23424868, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Korea'}, {u'name': u'Daegu', u'countryCode': u'KR', u'url': u'http://where.yahooapis.com/v1/place/1132466', u'woeid': 1132466, u'parentid': 23424868, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Korea'}, {u'name': u'Gwangju', u'countryCode': u'KR', u'url': u'http://where.yahooapis.com/v1/place/1132481', u'woeid': 1132481, u'parentid': 23424868, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Korea'}, {u'name': u'Incheon', u'countryCode': u'KR', u'url': u'http://where.yahooapis.com/v1/place/1132496', u'woeid': 1132496, u'parentid': 23424868, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Korea'}, {u'name': u'Suwon', u'countryCode': u'KR', u'url': u'http://where.yahooapis.com/v1/place/1132567', u'woeid': 1132567, u'parentid': 23424868, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Korea'}, {u'name': u'Ulsan', u'countryCode': u'KR', u'url': u'http://where.yahooapis.com/v1/place/1132578', u'woeid': 1132578, u'parentid': 23424868, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Korea'}, {u'name': u'Seoul', u'countryCode': u'KR', u'url': u'http://where.yahooapis.com/v1/place/1132599', u'woeid': 1132599, u'parentid': 23424868, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Korea'}, {u'name': u'Klang', u'countryCode': u'MY', u'url': u'http://where.yahooapis.com/v1/place/1154726', u'woeid': 1154726, u'parentid': 23424901, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Malaysia'}, {u'name': u'Kuala Lumpur', u'countryCode': u'MY', u'url': u'http://where.yahooapis.com/v1/place/1154781', u'woeid': 1154781, u'parentid': 23424901, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Malaysia'}, {u'name': u'Calocan', u'countryCode': u'PH', u'url': u'http://where.yahooapis.com/v1/place/1167715', u'woeid': 1167715, u'parentid': 23424934, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Philippines'}, {u'name': u'Davao City', u'countryCode': u'PH', u'url': u'http://where.yahooapis.com/v1/place/1199136', u'woeid': 1199136, u'parentid': 23424934, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Philippines'}, {u'name': u'Manila', u'countryCode': u'PH', u'url': u'http://where.yahooapis.com/v1/place/1199477', u'woeid': 1199477, u'parentid': 23424934, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Philippines'}, {u'name': u'Quezon City', u'countryCode': u'PH', u'url': u'http://where.yahooapis.com/v1/place/1199682', u'woeid': 1199682, u'parentid': 23424934, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Philippines'}, {u'name': u'Lagos', u'countryCode': u'NG', u'url': u'http://where.yahooapis.com/v1/place/1398823', u'woeid': 1398823, u'parentid': 23424908, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Nigeria'}, {u'name': u'Johannesburg', u'countryCode': u'ZA', u'url': u'http://where.yahooapis.com/v1/place/1582504', u'woeid': 1582504, u'parentid': 23424942, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'South Africa'}, {u'name': u'Samara', u'countryCode': u'RU', u'url': u'http://where.yahooapis.com/v1/place/2077746', u'woeid': 2077746, u'parentid': 23424936, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Russia'}, {u'name': u'Yekaterinburg', u'countryCode': u'RU', u'url': u'http://where.yahooapis.com/v1/place/2112237', u'woeid': 2112237, u'parentid': 23424936, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Russia'}, {u'name': u'Moscow', u'countryCode': u'RU', u'url': u'http://where.yahooapis.com/v1/place/2122265', u'woeid': 2122265, u'parentid': 23424936, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Russia'}, {u'name': u'Nizhny Novgorod', u'countryCode': u'RU', u'url': u'http://where.yahooapis.com/v1/place/2122471', u'woeid': 2122471, u'parentid': 23424936, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Russia'}, {u'name': u'Novosibirsk', u'countryCode': u'RU', u'url': u'http://where.yahooapis.com/v1/place/2122541', u'woeid': 2122541, u'parentid': 23424936, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Russia'}, {u'name': u'Omsk', u'countryCode': u'RU', u'url': u'http://where.yahooapis.com/v1/place/2122641', u'woeid': 2122641, u'parentid': 23424936, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Russia'}, {u'name': u'Saint Petersburg', u'countryCode': u'RU', u'url': u'http://where.yahooapis.com/v1/place/2123260', u'woeid': 2123260, u'parentid': 23424936, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Russia'}, {u'name': u'Nagpur', u'countryCode': u'IN', u'url': u'http://where.yahooapis.com/v1/place/2282863', u'woeid': 2282863, u'parentid': 23424848, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'India'}, {u'name': u'Lucknow', u'countryCode': u'IN', u'url': u'http://where.yahooapis.com/v1/place/2295377', u'woeid': 2295377, u'parentid': 23424848, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'India'}, {u'name': u'Kanpur', u'countryCode': u'IN', u'url': u'http://where.yahooapis.com/v1/place/2295378', u'woeid': 2295378, u'parentid': 23424848, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'India'}, {u'name': u'Kolkata', u'countryCode': u'IN', u'url': u'http://where.yahooapis.com/v1/place/2295386', u'woeid': 2295386, u'parentid': 23424848, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'India'}, {u'name': u'Amritsar', u'countryCode': u'IN', u'url': u'http://where.yahooapis.com/v1/place/2295388', u'woeid': 2295388, u'parentid': 23424848, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'India'}, {u'name': u'Jaipur', u'countryCode': u'IN', u'url': u'http://where.yahooapis.com/v1/place/2295401', u'woeid': 2295401, u'parentid': 23424848, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'India'}, {u'name': u'Ahmedabad', u'countryCode': u'IN', u'url': u'http://where.yahooapis.com/v1/place/2295402', u'woeid': 2295402, u'parentid': 23424848, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'India'}, {u'name': u'Indore', u'countryCode': u'IN', u'url': u'http://where.yahooapis.com/v1/place/2295408', u'woeid': 2295408, u'parentid': 23424848, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'India'}, {u'name': u'Mumbai', u'countryCode': u'IN', u'url': u'http://where.yahooapis.com/v1/place/2295411', u'woeid': 2295411, u'parentid': 23424848, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'India'}, {u'name': u'Pune', u'countryCode': u'IN', u'url': u'http://where.yahooapis.com/v1/place/2295412', u'woeid': 2295412, u'parentid': 23424848, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'India'}, {u'name': u'Hyderabad', u'countryCode': u'IN', u'url': u'http://where.yahooapis.com/v1/place/2295414', u'woeid': 2295414, u'parentid': 23424848, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'India'}, {u'name': u'Bangalore', u'countryCode': u'IN', u'url': u'http://where.yahooapis.com/v1/place/2295420', u'woeid': 2295420, u'parentid': 23424848, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'India'}, {u'name': u'Chennai', u'countryCode': u'IN', u'url': u'http://where.yahooapis.com/v1/place/2295424', u'woeid': 2295424, u'parentid': 23424848, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'India'}, {u'name': u'Adana', u'countryCode': u'TR', u'url': u'http://where.yahooapis.com/v1/place/2343678', u'woeid': 2343678, u'parentid': 23424969, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Turkey'}, {u'name': u'Ankara', u'countryCode': u'TR', u'url': u'http://where.yahooapis.com/v1/place/2343732', u'woeid': 2343732, u'parentid': 23424969, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Turkey'}, {u'name': u'Bursa', u'countryCode': u'TR', u'url': u'http://where.yahooapis.com/v1/place/2343843', u'woeid': 2343843, u'parentid': 23424969, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Turkey'}, {u'name': u'Istanbul', u'countryCode': u'TR', u'url': u'http://where.yahooapis.com/v1/place/2344116', u'woeid': 2344116, u'parentid': 23424969, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Turkey'}, {u'name': u'Izmir', u'countryCode': u'TR', u'url': u'http://where.yahooapis.com/v1/place/2344117', u'woeid': 2344117, u'parentid': 23424969, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Turkey'}, {u'name': u'Okinawa', u'countryCode': u'JP', u'url': u'http://where.yahooapis.com/v1/place/2345896', u'woeid': 2345896, u'parentid': 23424856, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Japan'}, {u'name': u'Daejeon', u'countryCode': u'KR', u'url': u'http://where.yahooapis.com/v1/place/2345975', u'woeid': 2345975, u'parentid': 23424868, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Korea'}, {u'name': u'Atlanta', u'countryCode': u'US', u'url': u'http://where.yahooapis.com/v1/place/2357024', u'woeid': 2357024, u'parentid': 23424977, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'United States'}, {u'name': u'Austin', u'countryCode': u'US', u'url': u'http://where.yahooapis.com/v1/place/2357536', u'woeid': 2357536, u'parentid': 23424977, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'United States'}, {u'name': u'Baltimore', u'countryCode': u'US', u'url': u'http://where.yahooapis.com/v1/place/2358820', u'woeid': 2358820, u'parentid': 23424977, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'United States'}, {u'name': u'Baton Rouge', u'countryCode': u'US', u'url': u'http://where.yahooapis.com/v1/place/2359991', u'woeid': 2359991, u'parentid': 23424977, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'United States'}, {u'name': u'Birmingham', u'countryCode': u'US', u'url': u'http://where.yahooapis.com/v1/place/2364559', u'woeid': 2364559, u'parentid': 23424977, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'United States'}, {u'name': u'Boston', u'countryCode': u'US', u'url': u'http://where.yahooapis.com/v1/place/2367105', u'woeid': 2367105, u'parentid': 23424977, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'United States'}, {u'name': u'Charlotte', u'countryCode': u'US', u'url': u'http://where.yahooapis.com/v1/place/2378426', u'woeid': 2378426, u'parentid': 23424977, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'United States'}, {u'name': u'Chicago', u'countryCode': u'US', u'url': u'http://where.yahooapis.com/v1/place/2379574', u'woeid': 2379574, u'parentid': 23424977, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'United States'}, {u'name': u'Cincinnati', u'countryCode': u'US', u'url': u'http://where.yahooapis.com/v1/place/2380358', u'woeid': 2380358, u'parentid': 23424977, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'United States'}, {u'name': u'Cleveland', u'countryCode': u'US', u'url': u'http://where.yahooapis.com/v1/place/2381475', u'woeid': 2381475, u'parentid': 23424977, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'United States'}, {u'name': u'Columbus', u'countryCode': u'US', u'url': u'http://where.yahooapis.com/v1/place/2383660', u'woeid': 2383660, u'parentid': 23424977, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'United States'}, {u'name': u'Dallas-Ft. Worth', u'countryCode': u'US', u'url': u'http://where.yahooapis.com/v1/place/2388929', u'woeid': 2388929, u'parentid': 23424977, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'United States'}, {u'name': u'Denver', u'countryCode': u'US', u'url': u'http://where.yahooapis.com/v1/place/2391279', u'woeid': 2391279, u'parentid': 23424977, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'United States'}, {u'name': u'Detroit', u'countryCode': u'US', u'url': u'http://where.yahooapis.com/v1/place/2391585', u'woeid': 2391585, u'parentid': 23424977, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'United States'}, {u'name': u'Greensboro', u'countryCode': u'US', u'url': u'http://where.yahooapis.com/v1/place/2414469', u'woeid': 2414469, u'parentid': 23424977, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'United States'}, {u'name': u'Harrisburg', u'countryCode': u'US', u'url': u'http://where.yahooapis.com/v1/place/2418046', u'woeid': 2418046, u'parentid': 23424977, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'United States'}, {u'name': u'Houston', u'countryCode': u'US', u'url': u'http://where.yahooapis.com/v1/place/2424766', u'woeid': 2424766, u'parentid': 23424977, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'United States'}, {u'name': u'Indianapolis', u'countryCode': u'US', u'url': u'http://where.yahooapis.com/v1/place/2427032', u'woeid': 2427032, u'parentid': 23424977, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'United States'}, {u'name': u'Jackson', u'countryCode': u'US', u'url': u'http://where.yahooapis.com/v1/place/2428184', u'woeid': 2428184, u'parentid': 23424977, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'United States'}, {u'name': u'Las Vegas', u'countryCode': u'US', u'url': u'http://where.yahooapis.com/v1/place/2436704', u'woeid': 2436704, u'parentid': 23424977, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'United States'}, {u'name': u'Los Angeles', u'countryCode': u'US', u'url': u'http://where.yahooapis.com/v1/place/2442047', u'woeid': 2442047, u'parentid': 23424977, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'United States'}, {u'name': u'Memphis', u'countryCode': u'US', u'url': u'http://where.yahooapis.com/v1/place/2449323', u'woeid': 2449323, u'parentid': 23424977, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'United States'}, {u'name': u'Miami', u'countryCode': u'US', u'url': u'http://where.yahooapis.com/v1/place/2450022', u'woeid': 2450022, u'parentid': 23424977, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'United States'}, {u'name': u'Milwaukee', u'countryCode': u'US', u'url': u'http://where.yahooapis.com/v1/place/2451822', u'woeid': 2451822, u'parentid': 23424977, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'United States'}, {u'name': u'Minneapolis', u'countryCode': u'US', u'url': u'http://where.yahooapis.com/v1/place/2452078', u'woeid': 2452078, u'parentid': 23424977, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'United States'}, {u'name': u'Nashville', u'countryCode': u'US', u'url': u'http://where.yahooapis.com/v1/place/2457170', u'woeid': 2457170, u'parentid': 23424977, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'United States'}, {u'name': u'New Haven', u'countryCode': u'US', u'url': u'http://where.yahooapis.com/v1/place/2458410', u'woeid': 2458410, u'parentid': 23424977, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'United States'}, {u'name': u'New Orleans', u'countryCode': u'US', u'url': u'http://where.yahooapis.com/v1/place/2458833', u'woeid': 2458833, u'parentid': 23424977, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'United States'}, {u'name': u'New York', u'countryCode': u'US', u'url': u'http://where.yahooapis.com/v1/place/2459115', u'woeid': 2459115, u'parentid': 23424977, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'United States'}, {u'name': u'Norfolk', u'countryCode': u'US', u'url': u'http://where.yahooapis.com/v1/place/2460389', u'woeid': 2460389, u'parentid': 23424977, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'United States'}, {u'name': u'Orlando', u'countryCode': u'US', u'url': u'http://where.yahooapis.com/v1/place/2466256', u'woeid': 2466256, u'parentid': 23424977, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'United States'}, {u'name': u'Philadelphia', u'countryCode': u'US', u'url': u'http://where.yahooapis.com/v1/place/2471217', u'woeid': 2471217, u'parentid': 23424977, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'United States'}, {u'name': u'Phoenix', u'countryCode': u'US', u'url': u'http://where.yahooapis.com/v1/place/2471390', u'woeid': 2471390, u'parentid': 23424977, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'United States'}, {u'name': u'Pittsburgh', u'countryCode': u'US', u'url': u'http://where.yahooapis.com/v1/place/2473224', u'woeid': 2473224, u'parentid': 23424977, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'United States'}, {u'name': u'Portland', u'countryCode': u'US', u'url': u'http://where.yahooapis.com/v1/place/2475687', u'woeid': 2475687, u'parentid': 23424977, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'United States'}, {u'name': u'Providence', u'countryCode': u'US', u'url': u'http://where.yahooapis.com/v1/place/2477058', u'woeid': 2477058, u'parentid': 23424977, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'United States'}, {u'name': u'Raleigh', u'countryCode': u'US', u'url': u'http://where.yahooapis.com/v1/place/2478307', u'woeid': 2478307, u'parentid': 23424977, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'United States'}, {u'name': u'Richmond', u'countryCode': u'US', u'url': u'http://where.yahooapis.com/v1/place/2480894', u'woeid': 2480894, u'parentid': 23424977, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'United States'}, {u'name': u'Sacramento', u'countryCode': u'US', u'url': u'http://where.yahooapis.com/v1/place/2486340', u'woeid': 2486340, u'parentid': 23424977, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'United States'}, {u'name': u'St. Louis', u'countryCode': u'US', u'url': u'http://where.yahooapis.com/v1/place/2486982', u'woeid': 2486982, u'parentid': 23424977, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'United States'}, {u'name': u'Salt Lake City', u'countryCode': u'US', u'url': u'http://where.yahooapis.com/v1/place/2487610', u'woeid': 2487610, u'parentid': 23424977, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'United States'}, {u'name': u'San Antonio', u'countryCode': u'US', u'url': u'http://where.yahooapis.com/v1/place/2487796', u'woeid': 2487796, u'parentid': 23424977, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'United States'}, {u'name': u'San Diego', u'countryCode': u'US', u'url': u'http://where.yahooapis.com/v1/place/2487889', u'woeid': 2487889, u'parentid': 23424977, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'United States'}, {u'name': u'San Francisco', u'countryCode': u'US', u'url': u'http://where.yahooapis.com/v1/place/2487956', u'woeid': 2487956, u'parentid': 23424977, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'United States'}, {u'name': u'Seattle', u'countryCode': u'US', u'url': u'http://where.yahooapis.com/v1/place/2490383', u'woeid': 2490383, u'parentid': 23424977, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'United States'}, {u'name': u'Tallahassee', u'countryCode': u'US', u'url': u'http://where.yahooapis.com/v1/place/2503713', u'woeid': 2503713, u'parentid': 23424977, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'United States'}, {u'name': u'Tampa', u'countryCode': u'US', u'url': u'http://where.yahooapis.com/v1/place/2503863', u'woeid': 2503863, u'parentid': 23424977, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'United States'}, {u'name': u'Washington', u'countryCode': u'US', u'url': u'http://where.yahooapis.com/v1/place/2514815', u'woeid': 2514815, u'parentid': 23424977, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'United States'}, {u'name': u'Osaka', u'countryCode': u'JP', u'url': u'http://where.yahooapis.com/v1/place/15015370', u'woeid': 15015370, u'parentid': 23424856, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Japan'}, {u'name': u'Kyoto', u'countryCode': u'JP', u'url': u'http://where.yahooapis.com/v1/place/15015372', u'woeid': 15015372, u'parentid': 23424856, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Japan'}, {u'name': u'Delhi', u'countryCode': u'IN', u'url': u'http://where.yahooapis.com/v1/place/20070458', u'woeid': 20070458, u'parentid': 23424848, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'India'}, {u'name': u'United Arab Emirates', u'countryCode': u'AE', u'url': u'http://where.yahooapis.com/v1/place/23424738', u'woeid': 23424738, u'parentid': 1, u'placeType': {u'code': 12, u'name': u'Country'}, u'country': u'United Arab Emirates'}, {u'name': u'Argentina', u'countryCode': u'AR', u'url': u'http://where.yahooapis.com/v1/place/23424747', u'woeid': 23424747, u'parentid': 1, u'placeType': {u'code': 12, u'name': u'Country'}, u'country': u'Argentina'}, {u'name': u'Australia', u'countryCode': u'AU', u'url': u'http://where.yahooapis.com/v1/place/23424748', u'woeid': 23424748, u'parentid': 1, u'placeType': {u'code': 12, u'name': u'Country'}, u'country': u'Australia'}, {u'name': u'Brazil', u'countryCode': u'BR', u'url': u'http://where.yahooapis.com/v1/place/23424768', u'woeid': 23424768, u'parentid': 1, u'placeType': {u'code': 12, u'name': u'Country'}, u'country': u'Brazil'}, {u'name': u'Canada', u'countryCode': u'CA', u'url': u'http://where.yahooapis.com/v1/place/23424775', u'woeid': 23424775, u'parentid': 1, u'placeType': {u'code': 12, u'name': u'Country'}, u'country': u'Canada'}, {u'name': u'Chile', u'countryCode': u'CL', u'url': u'http://where.yahooapis.com/v1/place/23424782', u'woeid': 23424782, u'parentid': 1, u'placeType': {u'code': 12, u'name': u'Country'}, u'country': u'Chile'}, {u'name': u'Colombia', u'countryCode': u'CO', u'url': u'http://where.yahooapis.com/v1/place/23424787', u'woeid': 23424787, u'parentid': 1, u'placeType': {u'code': 12, u'name': u'Country'}, u'country': u'Colombia'}, {u'name': u'Dominican Republic', u'countryCode': u'DO', u'url': u'http://where.yahooapis.com/v1/place/23424800', u'woeid': 23424800, u'parentid': 1, u'placeType': {u'code': 12, u'name': u'Country'}, u'country': u'Dominican Republic'}, {u'name': u'Ecuador', u'countryCode': u'EC', u'url': u'http://where.yahooapis.com/v1/place/23424801', u'woeid': 23424801, u'parentid': 1, u'placeType': {u'code': 12, u'name': u'Country'}, u'country': u'Ecuador'}, {u'name': u'Ireland', u'countryCode': u'IE', u'url': u'http://where.yahooapis.com/v1/place/23424803', u'woeid': 23424803, u'parentid': 1, u'placeType': {u'code': 12, u'name': u'Country'}, u'country': u'Ireland'}, {u'name': u'France', u'countryCode': u'FR', u'url': u'http://where.yahooapis.com/v1/place/23424819', u'woeid': 23424819, u'parentid': 1, u'placeType': {u'code': 12, u'name': u'Country'}, u'country': u'France'}, {u'name': u'Germany', u'countryCode': u'DE', u'url': u'http://where.yahooapis.com/v1/place/23424829', u'woeid': 23424829, u'parentid': 1, u'placeType': {u'code': 12, u'name': u'Country'}, u'country': u'Germany'}, {u'name': u'Guatemala', u'countryCode': u'GT', u'url': u'http://where.yahooapis.com/v1/place/23424834', u'woeid': 23424834, u'parentid': 1, u'placeType': {u'code': 12, u'name': u'Country'}, u'country': u'Guatemala'}, {u'name': u'Indonesia', u'countryCode': u'ID', u'url': u'http://where.yahooapis.com/v1/place/23424846', u'woeid': 23424846, u'parentid': 1, u'placeType': {u'code': 12, u'name': u'Country'}, u'country': u'Indonesia'}, {u'name': u'India', u'countryCode': u'IN', u'url': u'http://where.yahooapis.com/v1/place/23424848', u'woeid': 23424848, u'parentid': 1, u'placeType': {u'code': 12, u'name': u'Country'}, u'country': u'India'}, {u'name': u'Italy', u'countryCode': u'IT', u'url': u'http://where.yahooapis.com/v1/place/23424853', u'woeid': 23424853, u'parentid': 1, u'placeType': {u'code': 12, u'name': u'Country'}, u'country': u'Italy'}, {u'name': u'Japan', u'countryCode': u'JP', u'url': u'http://where.yahooapis.com/v1/place/23424856', u'woeid': 23424856, u'parentid': 1, u'placeType': {u'code': 12, u'name': u'Country'}, u'country': u'Japan'}, {u'name': u'Korea', u'countryCode': u'KR', u'url': u'http://where.yahooapis.com/v1/place/23424868', u'woeid': 23424868, u'parentid': 1, u'placeType': {u'code': 12, u'name': u'Country'}, u'country': u'Korea'}, {u'name': u'Mexico', u'countryCode': u'MX', u'url': u'http://where.yahooapis.com/v1/place/23424900', u'woeid': 23424900, u'parentid': 1, u'placeType': {u'code': 12, u'name': u'Country'}, u'country': u'Mexico'}, {u'name': u'Malaysia', u'countryCode': u'MY', u'url': u'http://where.yahooapis.com/v1/place/23424901', u'woeid': 23424901, u'parentid': 1, u'placeType': {u'code': 12, u'name': u'Country'}, u'country': u'Malaysia'}, {u'name': u'Nigeria', u'countryCode': u'NG', u'url': u'http://where.yahooapis.com/v1/place/23424908', u'woeid': 23424908, u'parentid': 1, u'placeType': {u'code': 12, u'name': u'Country'}, u'country': u'Nigeria'}, {u'name': u'Netherlands', u'countryCode': u'NL', u'url': u'http://where.yahooapis.com/v1/place/23424909', u'woeid': 23424909, u'parentid': 1, u'placeType': {u'code': 12, u'name': u'Country'}, u'country': u'Netherlands'}, {u'name': u'New Zealand', u'countryCode': u'NZ', u'url': u'http://where.yahooapis.com/v1/place/23424916', u'woeid': 23424916, u'parentid': 1, u'placeType': {u'code': 12, u'name': u'Country'}, u'country': u'New Zealand'}, {u'name': u'Peru', u'countryCode': u'PE', u'url': u'http://where.yahooapis.com/v1/place/23424919', u'woeid': 23424919, u'parentid': 1, u'placeType': {u'code': 12, u'name': u'Country'}, u'country': u'Peru'}, {u'name': u'Pakistan', u'countryCode': u'PK', u'url': u'http://where.yahooapis.com/v1/place/23424922', u'woeid': 23424922, u'parentid': 1, u'placeType': {u'code': 12, u'name': u'Country'}, u'country': u'Pakistan'}, {u'name': u'Philippines', u'countryCode': u'PH', u'url': u'http://where.yahooapis.com/v1/place/23424934', u'woeid': 23424934, u'parentid': 1, u'placeType': {u'code': 12, u'name': u'Country'}, u'country': u'Philippines'}, {u'name': u'Russia', u'countryCode': u'RU', u'url': u'http://where.yahooapis.com/v1/place/23424936', u'woeid': 23424936, u'parentid': 1, u'placeType': {u'code': 12, u'name': u'Country'}, u'country': u'Russia'}, {u'name': u'South Africa', u'countryCode': u'ZA', u'url': u'http://where.yahooapis.com/v1/place/23424942', u'woeid': 23424942, u'parentid': 1, u'placeType': {u'code': 12, u'name': u'Country'}, u'country': u'South Africa'}, {u'name': u'Singapore', u'countryCode': u'SG', u'url': u'http://where.yahooapis.com/v1/place/23424948', u'woeid': 23424948, u'parentid': 1, u'placeType': {u'code': 12, u'name': u'Country'}, u'country': u'Singapore'}, {u'name': u'Spain', u'countryCode': u'ES', u'url': u'http://where.yahooapis.com/v1/place/23424950', u'woeid': 23424950, u'parentid': 1, u'placeType': {u'code': 12, u'name': u'Country'}, u'country': u'Spain'}, {u'name': u'Sweden', u'countryCode': u'SE', u'url': u'http://where.yahooapis.com/v1/place/23424954', u'woeid': 23424954, u'parentid': 1, u'placeType': {u'code': 12, u'name': u'Country'}, u'country': u'Sweden'}, {u'name': u'Turkey', u'countryCode': u'TR', u'url': u'http://where.yahooapis.com/v1/place/23424969', u'woeid': 23424969, u'parentid': 1, u'placeType': {u'code': 12, u'name': u'Country'}, u'country': u'Turkey'}, {u'name': u'United Kingdom', u'countryCode': u'GB', u'url': u'http://where.yahooapis.com/v1/place/23424975', u'woeid': 23424975, u'parentid': 1, u'placeType': {u'code': 12, u'name': u'Country'}, u'country': u'United Kingdom'}, {u'name': u'United States', u'countryCode': u'US', u'url': u'http://where.yahooapis.com/v1/place/23424977', u'woeid': 23424977, u'parentid': 1, u'placeType': {u'code': 12, u'name': u'Country'}, u'country': u'United States'}, {u'name': u'Venezuela', u'countryCode': u'VE', u'url': u'http://where.yahooapis.com/v1/place/23424982', u'woeid': 23424982, u'parentid': 1, u'placeType': {u'code': 12, u'name': u'Country'}, u'country': u'Venezuela'}, {u'name': u'Petaling', u'countryCode': u'MY', u'url': u'http://where.yahooapis.com/v1/place/56013632', u'woeid': 56013632, u'parentid': 23424901, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Malaysia'}, {u'name': u'Hulu Langat', u'countryCode': u'MY', u'url': u'http://where.yahooapis.com/v1/place/56013645', u'woeid': 56013645, u'parentid': 23424901, u'placeType': {u'code': 7, u'name': u'Town'}, u'country': u'Malaysia'}]
michaelhelmick commented 11 years ago

Hm, you're right.. Poland and Ukraine are not there. That's very strange. Have you tried setting up a new app on Twitter and trying to authenticate a user with the new app and then make the call? Try that. Let me know if anything changes!

Menelion commented 11 years ago

No dice :-(. Just created a new app, but still 35 countries returned, no Ukraine, no Poland.

michaelhelmick commented 11 years ago

What is the twitter handle of the user you are trying to authenticate with?

Sent from my iPhone

On Jun 13, 2013, at 12:15 PM, Menelion Elensúle notifications@github.com wrote:

No dice :-(. Just created a new app, but still 35 countries returned, no Ukraine, no Poland.

— Reply to this email directly or view it on GitHub.

Menelion commented 11 years ago

Mike, I've just done what I had to do much earlier: wrote a simple script (like you did) that outputs all of this. And still no Ukraine, no Poland.
What do you mean by handle, OAuth credentials or?..

michaelhelmick commented 11 years ago

Like their twitter username

Sent from my iPhone

On Jun 13, 2013, at 2:40 PM, Menelion Elensúle notifications@github.com wrote:

Mike, I've just done what I had to do much earlier: wrote a simple script (like you did) that outputs all of this. And still no Ukraine, no Poland.

What do you mean by handle, OAuth credentials or?..

— Reply to this email directly or view it on GitHub.

Menelion commented 11 years ago

My Twitter username is _melensule. I'm doing tests from this name's access token.

michaelhelmick commented 11 years ago

Not sure if maybe Twitter in Ukraine may be limiting your result. If you can, email (mikeh@ydekproductions.com) me your SECOND application that I asked you to create (send me the consumer key and consumer secret) and I'll register with that app and see what data I get back from get_available_trends