912 lines
168 KiB
HTML
912 lines
168 KiB
HTML
<?xml version="1.0" encoding="ascii"?>
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
"DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
<head>
|
|
<title>lastfm.geo</title>
|
|
<link rel="stylesheet" href="epydoc.css" type="text/css" />
|
|
<script type="text/javascript" src="epydoc.js"></script>
|
|
</head>
|
|
|
|
<body bgcolor="white" text="black" link="blue" vlink="#204080"
|
|
alink="#204080">
|
|
<!-- ==================== NAVIGATION BAR ==================== -->
|
|
<table class="navbar" border="0" width="100%" cellpadding="0"
|
|
bgcolor="#a0c0ff" cellspacing="0">
|
|
<tr valign="middle">
|
|
<!-- Home link -->
|
|
<th> <a
|
|
href="lastfm-module.html">Home</a> </th>
|
|
|
|
<!-- Tree link -->
|
|
<th> <a
|
|
href="module-tree.html">Trees</a> </th>
|
|
|
|
<!-- Index link -->
|
|
<th> <a
|
|
href="identifier-index.html">Indices</a> </th>
|
|
|
|
<!-- Help link -->
|
|
<th> <a
|
|
href="help.html">Help</a> </th>
|
|
|
|
<!-- Project homepage -->
|
|
<th class="navbar" align="right" width="100%">
|
|
<table border="0" cellpadding="0" cellspacing="0">
|
|
<tr><th class="navbar" align="center"
|
|
><a class="navbar" target="_top" href="http://code.google.com/p/python-lastfm/">python-lastfm</a></th>
|
|
</tr></table></th>
|
|
</tr>
|
|
</table>
|
|
<table width="100%" cellpadding="0" cellspacing="0">
|
|
<tr valign="top">
|
|
<td width="100%">
|
|
<span class="breadcrumbs">
|
|
<a href="lastfm-module.html">Package lastfm</a> ::
|
|
Module geo
|
|
</span>
|
|
</td>
|
|
<td>
|
|
<table cellpadding="0" cellspacing="0">
|
|
<!-- hide/show private -->
|
|
<tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
|
|
onclick="toggle_private();">hide private</a>]</span></td></tr>
|
|
<tr><td align="right"><span class="options"
|
|
>[<a href="frames.html" target="_top">frames</a
|
|
>] | <a href="lastfm.geo-pysrc.html"
|
|
target="_top">no frames</a>]</span></td></tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<h1 class="epydoc">Source Code for <a href="lastfm.geo-module.html" onclick="show_private();">Module lastfm.geo</a></h1>
|
|
<pre class="py-src">
|
|
<a name="L1"></a><tt class="py-lineno"> 1</tt> <tt class="py-line"><tt class="py-comment">#!/usr/bin/env python</tt> </tt>
|
|
<a name="L2"></a><tt class="py-lineno"> 2</tt> <tt class="py-line"> </tt>
|
|
<a name="L3"></a><tt class="py-lineno"> 3</tt> <tt class="py-line"><tt class="py-name">__author__</tt> <tt class="py-op">=</tt> <tt class="py-docstring">"Abhinav Sarkar <abhinav@abhinavsarkar.net>"</tt> </tt>
|
|
<a name="L4"></a><tt class="py-lineno"> 4</tt> <tt class="py-line"><tt class="py-name">__version__</tt> <tt class="py-op">=</tt> <tt class="py-string">"0.2"</tt> </tt>
|
|
<a name="L5"></a><tt class="py-lineno"> 5</tt> <tt class="py-line"><tt class="py-name">__license__</tt> <tt class="py-op">=</tt> <tt class="py-string">"GNU Lesser General Public License"</tt> </tt>
|
|
<a name="L6"></a><tt class="py-lineno"> 6</tt> <tt class="py-line"> </tt>
|
|
<a name="L7"></a><tt class="py-lineno"> 7</tt> <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-0" class="py-name" targets="Package lastfm=lastfm-module.html"><a title="lastfm" class="py-name" href="#" onclick="return doclink('link-0', 'lastfm', 'link-0');">lastfm</a></tt><tt class="py-op">.</tt><tt id="link-1" class="py-name" targets="Module lastfm.base=lastfm.base-module.html"><a title="lastfm.base" class="py-name" href="#" onclick="return doclink('link-1', 'base', 'link-1');">base</a></tt> <tt class="py-keyword">import</tt> <tt id="link-2" class="py-name" targets="Class lastfm.base.LastfmBase=lastfm.base.LastfmBase-class.html"><a title="lastfm.base.LastfmBase" class="py-name" href="#" onclick="return doclink('link-2', 'LastfmBase', 'link-2');">LastfmBase</a></tt> </tt>
|
|
<a name="L8"></a><tt class="py-lineno"> 8</tt> <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-3" class="py-name"><a title="lastfm" class="py-name" href="#" onclick="return doclink('link-3', 'lastfm', 'link-0');">lastfm</a></tt><tt class="py-op">.</tt><tt id="link-4" class="py-name" targets="Package lastfm.mixins=lastfm.mixins-module.html"><a title="lastfm.mixins" class="py-name" href="#" onclick="return doclink('link-4', 'mixins', 'link-4');">mixins</a></tt> <tt class="py-keyword">import</tt> <tt id="link-5" class="py-name" targets="Class lastfm.mixins.cacheable.Cacheable=lastfm.mixins.cacheable.Cacheable-class.html"><a title="lastfm.mixins.cacheable.Cacheable" class="py-name" href="#" onclick="return doclink('link-5', 'Cacheable', 'link-5');">Cacheable</a></tt> </tt>
|
|
<a name="L9"></a><tt class="py-lineno"> 9</tt> <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-6" class="py-name"><a title="lastfm" class="py-name" href="#" onclick="return doclink('link-6', 'lastfm', 'link-0');">lastfm</a></tt><tt class="py-op">.</tt><tt id="link-7" class="py-name" targets="Module lastfm.lazylist=lastfm.lazylist-module.html,Function lastfm.lazylist.lazylist()=lastfm.lazylist-module.html#lazylist"><a title="lastfm.lazylist
|
|
lastfm.lazylist.lazylist" class="py-name" href="#" onclick="return doclink('link-7', 'lazylist', 'link-7');">lazylist</a></tt> <tt class="py-keyword">import</tt> <tt id="link-8" class="py-name"><a title="lastfm.lazylist
|
|
lastfm.lazylist.lazylist" class="py-name" href="#" onclick="return doclink('link-8', 'lazylist', 'link-7');">lazylist</a></tt> </tt>
|
|
<a name="L10"></a><tt class="py-lineno"> 10</tt> <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-9" class="py-name"><a title="lastfm" class="py-name" href="#" onclick="return doclink('link-9', 'lastfm', 'link-0');">lastfm</a></tt><tt class="py-op">.</tt><tt id="link-10" class="py-name" targets="Module lastfm.decorators=lastfm.decorators-module.html"><a title="lastfm.decorators" class="py-name" href="#" onclick="return doclink('link-10', 'decorators', 'link-10');">decorators</a></tt> <tt class="py-keyword">import</tt> <tt id="link-11" class="py-name" targets="Function lastfm.decorators.cached_property()=lastfm.decorators-module.html#cached_property"><a title="lastfm.decorators.cached_property" class="py-name" href="#" onclick="return doclink('link-11', 'cached_property', 'link-11');">cached_property</a></tt><tt class="py-op">,</tt> <tt id="link-12" class="py-name" targets="Function lastfm.decorators.top_property()=lastfm.decorators-module.html#top_property"><a title="lastfm.decorators.top_property" class="py-name" href="#" onclick="return doclink('link-12', 'top_property', 'link-12');">top_property</a></tt> </tt>
|
|
<a name="Geo"></a><div id="Geo-def"><a name="L11"></a><tt class="py-lineno"> 11</tt> <tt class="py-line"> </tt>
|
|
<a name="L12"></a><tt class="py-lineno"> 12</tt> <a class="py-toggle" href="#" id="Geo-toggle" onclick="return toggle('Geo');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="lastfm.geo.Geo-class.html">Geo</a><tt class="py-op">(</tt><tt class="py-base-class">object</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
|
</div><div id="Geo-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="Geo-expanded"><a name="L13"></a><tt class="py-lineno"> 13</tt> <tt class="py-line"> <tt class="py-docstring">"""A class representing an geographic location."""</tt> </tt>
|
|
<a name="L14"></a><tt class="py-lineno"> 14</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">staticmethod</tt> </tt>
|
|
<a name="Geo.get_events"></a><div id="Geo.get_events-def"><a name="L15"></a><tt class="py-lineno"> 15</tt> <a class="py-toggle" href="#" id="Geo.get_events-toggle" onclick="return toggle('Geo.get_events');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="lastfm.geo.Geo-class.html#get_events">get_events</a><tt class="py-op">(</tt><tt class="py-param">api</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L16"></a><tt class="py-lineno"> 16</tt> <tt class="py-line"> <tt class="py-param">location</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L17"></a><tt class="py-lineno"> 17</tt> <tt class="py-line"> <tt class="py-param">latitude</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L18"></a><tt class="py-lineno"> 18</tt> <tt class="py-line"> <tt class="py-param">longitude</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L19"></a><tt class="py-lineno"> 19</tt> <tt class="py-line"> <tt class="py-param">distance</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
|
</div><div id="Geo.get_events-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Geo.get_events-expanded"><a name="L20"></a><tt class="py-lineno"> 20</tt> <tt class="py-line"> <tt class="py-name">params</tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-string">'method'</tt><tt class="py-op">:</tt> <tt class="py-string">'geo.getEvents'</tt><tt class="py-op">,</tt> <tt class="py-string">'location'</tt><tt class="py-op">:</tt> <tt id="link-13" class="py-name" targets="Variable lastfm.venue.Venue.location=lastfm.venue.Venue-class.html#location"><a title="lastfm.venue.Venue.location" class="py-name" href="#" onclick="return doclink('link-13', 'location', 'link-13');">location</a></tt><tt class="py-op">}</tt> </tt>
|
|
<a name="L21"></a><tt class="py-lineno"> 21</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">distance</tt> <tt class="py-keyword">is</tt> <tt class="py-keyword">not</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
|
|
<a name="L22"></a><tt class="py-lineno"> 22</tt> <tt class="py-line"> <tt class="py-name">params</tt><tt class="py-op">.</tt><tt class="py-name">update</tt><tt class="py-op">(</tt><tt class="py-op">{</tt><tt class="py-string">'distance'</tt><tt class="py-op">:</tt> <tt class="py-name">distance</tt><tt class="py-op">}</tt><tt class="py-op">)</tt> </tt>
|
|
<a name="L23"></a><tt class="py-lineno"> 23</tt> <tt class="py-line"> </tt>
|
|
<a name="L24"></a><tt class="py-lineno"> 24</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt id="link-14" class="py-name" targets="Variable lastfm.geo.Location.latitude=lastfm.geo.Location-class.html#latitude"><a title="lastfm.geo.Location.latitude" class="py-name" href="#" onclick="return doclink('link-14', 'latitude', 'link-14');">latitude</a></tt> <tt class="py-keyword">is</tt> <tt class="py-keyword">not</tt> <tt class="py-name">None</tt> <tt class="py-keyword">and</tt> <tt id="link-15" class="py-name" targets="Variable lastfm.geo.Location.longitude=lastfm.geo.Location-class.html#longitude"><a title="lastfm.geo.Location.longitude" class="py-name" href="#" onclick="return doclink('link-15', 'longitude', 'link-15');">longitude</a></tt> <tt class="py-keyword">is</tt> <tt class="py-keyword">not</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
|
|
<a name="L25"></a><tt class="py-lineno"> 25</tt> <tt class="py-line"> <tt class="py-name">params</tt><tt class="py-op">.</tt><tt class="py-name">update</tt><tt class="py-op">(</tt><tt class="py-op">{</tt><tt class="py-string">'latitude'</tt><tt class="py-op">:</tt> <tt id="link-16" class="py-name"><a title="lastfm.geo.Location.latitude" class="py-name" href="#" onclick="return doclink('link-16', 'latitude', 'link-14');">latitude</a></tt><tt class="py-op">,</tt> <tt class="py-string">'longitude'</tt><tt class="py-op">:</tt> <tt id="link-17" class="py-name"><a title="lastfm.geo.Location.longitude" class="py-name" href="#" onclick="return doclink('link-17', 'longitude', 'link-15');">longitude</a></tt><tt class="py-op">}</tt><tt class="py-op">)</tt> </tt>
|
|
<a name="L26"></a><tt class="py-lineno"> 26</tt> <tt class="py-line"> </tt>
|
|
<a name="L27"></a><tt class="py-lineno"> 27</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">lazylist</tt> </tt>
|
|
<a name="L28"></a><tt class="py-lineno"> 28</tt> <tt class="py-line"> <tt class="py-keyword">def</tt> <tt class="py-def-name">gen</tt><tt class="py-op">(</tt><tt class="py-param">lst</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
|
<a name="L29"></a><tt class="py-lineno"> 29</tt> <tt class="py-line"> <tt id="link-18" class="py-name" targets="Variable lastfm.playlist.Playlist.data=lastfm.playlist.Playlist-class.html#data"><a title="lastfm.playlist.Playlist.data" class="py-name" href="#" onclick="return doclink('link-18', 'data', 'link-18');">data</a></tt> <tt class="py-op">=</tt> <tt id="link-19" class="py-name" targets="Module lastfm.api=lastfm.api-module.html"><a title="lastfm.api" class="py-name" href="#" onclick="return doclink('link-19', 'api', 'link-19');">api</a></tt><tt class="py-op">.</tt><tt id="link-20" class="py-name" targets="Static Method lastfm.album.Album._fetch_data()=lastfm.album.Album-class.html#_fetch_data,Method lastfm.api.Api._fetch_data()=lastfm.api.Api-class.html#_fetch_data,Static Method lastfm.artist.Artist._fetch_data()=lastfm.artist.Artist-class.html#_fetch_data,Static Method lastfm.track.Track._fetch_data()=lastfm.track.Track-class.html#_fetch_data"><a title="lastfm.album.Album._fetch_data
|
|
lastfm.api.Api._fetch_data
|
|
lastfm.artist.Artist._fetch_data
|
|
lastfm.track.Track._fetch_data" class="py-name" href="#" onclick="return doclink('link-20', '_fetch_data', 'link-20');">_fetch_data</a></tt><tt class="py-op">(</tt><tt class="py-name">params</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">find</tt><tt class="py-op">(</tt><tt class="py-string">'events'</tt><tt class="py-op">)</tt> </tt>
|
|
<a name="L30"></a><tt class="py-lineno"> 30</tt> <tt class="py-line"> <tt class="py-name">total_pages</tt> <tt class="py-op">=</tt> <tt class="py-name">int</tt><tt class="py-op">(</tt><tt id="link-21" class="py-name"><a title="lastfm.playlist.Playlist.data" class="py-name" href="#" onclick="return doclink('link-21', 'data', 'link-18');">data</a></tt><tt class="py-op">.</tt><tt class="py-name">attrib</tt><tt class="py-op">[</tt><tt class="py-string">'totalpages'</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
|
|
<a name="L31"></a><tt class="py-lineno"> 31</tt> <tt class="py-line"> </tt>
|
|
<a name="L32"></a><tt class="py-lineno"> 32</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">lazylist</tt> </tt>
|
|
<a name="L33"></a><tt class="py-lineno"> 33</tt> <tt class="py-line"> <tt class="py-keyword">def</tt> <tt class="py-def-name">gen2</tt><tt class="py-op">(</tt><tt class="py-param">lst</tt><tt class="py-op">,</tt> <tt class="py-param">data</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
|
<a name="L34"></a><tt class="py-lineno"> 34</tt> <tt class="py-line"> <tt class="py-keyword">for</tt> <tt class="py-name">e</tt> <tt class="py-keyword">in</tt> <tt id="link-22" class="py-name"><a title="lastfm.playlist.Playlist.data" class="py-name" href="#" onclick="return doclink('link-22', 'data', 'link-18');">data</a></tt><tt class="py-op">.</tt><tt class="py-name">findall</tt><tt class="py-op">(</tt><tt class="py-string">'event'</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
|
<a name="L35"></a><tt class="py-lineno"> 35</tt> <tt class="py-line"> <tt class="py-keyword">yield</tt> <tt id="link-23" class="py-name" targets="Class lastfm.event.Event=lastfm.event.Event-class.html"><a title="lastfm.event.Event" class="py-name" href="#" onclick="return doclink('link-23', 'Event', 'link-23');">Event</a></tt><tt class="py-op">.</tt><tt id="link-24" class="py-name" targets="Static Method lastfm.event.Event.create_from_data()=lastfm.event.Event-class.html#create_from_data,Static Method lastfm.weeklychart.WeeklyAlbumChart.create_from_data()=lastfm.weeklychart.WeeklyAlbumChart-class.html#create_from_data,Static Method lastfm.weeklychart.WeeklyArtistChart.create_from_data()=lastfm.weeklychart.WeeklyArtistChart-class.html#create_from_data,Static Method lastfm.weeklychart.WeeklyChart.create_from_data()=lastfm.weeklychart.WeeklyChart-class.html#create_from_data,Static Method lastfm.weeklychart.WeeklyTagChart.create_from_data()=lastfm.weeklychart.WeeklyTagChart-class.html#create_from_data,Static Method lastfm.weeklychart.WeeklyTrackChart.create_from_data()=lastfm.weeklychart.WeeklyTrackChart-class.html#create_from_data"><a title="lastfm.event.Event.create_from_data
|
|
lastfm.weeklychart.WeeklyAlbumChart.create_from_data
|
|
lastfm.weeklychart.WeeklyArtistChart.create_from_data
|
|
lastfm.weeklychart.WeeklyChart.create_from_data
|
|
lastfm.weeklychart.WeeklyTagChart.create_from_data
|
|
lastfm.weeklychart.WeeklyTrackChart.create_from_data" class="py-name" href="#" onclick="return doclink('link-24', 'create_from_data', 'link-24');">create_from_data</a></tt><tt class="py-op">(</tt><tt id="link-25" class="py-name"><a title="lastfm.api" class="py-name" href="#" onclick="return doclink('link-25', 'api', 'link-19');">api</a></tt><tt class="py-op">,</tt> <tt class="py-name">e</tt><tt class="py-op">)</tt> </tt>
|
|
</div><a name="L36"></a><tt class="py-lineno"> 36</tt> <tt class="py-line"> </tt>
|
|
<a name="L37"></a><tt class="py-lineno"> 37</tt> <tt class="py-line"> <tt class="py-keyword">for</tt> <tt class="py-name">e</tt> <tt class="py-keyword">in</tt> <tt class="py-name">gen2</tt><tt class="py-op">(</tt><tt id="link-26" class="py-name"><a title="lastfm.playlist.Playlist.data" class="py-name" href="#" onclick="return doclink('link-26', 'data', 'link-18');">data</a></tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
|
<a name="L38"></a><tt class="py-lineno"> 38</tt> <tt class="py-line"> <tt class="py-keyword">yield</tt> <tt class="py-name">e</tt> </tt>
|
|
<a name="L39"></a><tt class="py-lineno"> 39</tt> <tt class="py-line"> </tt>
|
|
<a name="L40"></a><tt class="py-lineno"> 40</tt> <tt class="py-line"> <tt class="py-keyword">for</tt> <tt class="py-name">page</tt> <tt class="py-keyword">in</tt> <tt class="py-name">xrange</tt><tt class="py-op">(</tt><tt class="py-number">2</tt><tt class="py-op">,</tt> <tt class="py-name">total_pages</tt><tt class="py-op">+</tt><tt class="py-number">1</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
|
<a name="L41"></a><tt class="py-lineno"> 41</tt> <tt class="py-line"> <tt class="py-name">params</tt><tt class="py-op">.</tt><tt class="py-name">update</tt><tt class="py-op">(</tt><tt class="py-op">{</tt><tt class="py-string">'page'</tt><tt class="py-op">:</tt> <tt class="py-name">page</tt><tt class="py-op">}</tt><tt class="py-op">)</tt> </tt>
|
|
<a name="L42"></a><tt class="py-lineno"> 42</tt> <tt class="py-line"> <tt id="link-27" class="py-name"><a title="lastfm.playlist.Playlist.data" class="py-name" href="#" onclick="return doclink('link-27', 'data', 'link-18');">data</a></tt> <tt class="py-op">=</tt> <tt id="link-28" class="py-name"><a title="lastfm.api" class="py-name" href="#" onclick="return doclink('link-28', 'api', 'link-19');">api</a></tt><tt class="py-op">.</tt><tt id="link-29" class="py-name"><a title="lastfm.album.Album._fetch_data
|
|
lastfm.api.Api._fetch_data
|
|
lastfm.artist.Artist._fetch_data
|
|
lastfm.track.Track._fetch_data" class="py-name" href="#" onclick="return doclink('link-29', '_fetch_data', 'link-20');">_fetch_data</a></tt><tt class="py-op">(</tt><tt class="py-name">params</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">find</tt><tt class="py-op">(</tt><tt class="py-string">'events'</tt><tt class="py-op">)</tt> </tt>
|
|
<a name="L43"></a><tt class="py-lineno"> 43</tt> <tt class="py-line"> <tt class="py-keyword">for</tt> <tt class="py-name">e</tt> <tt class="py-keyword">in</tt> <tt class="py-name">gen2</tt><tt class="py-op">(</tt><tt id="link-30" class="py-name"><a title="lastfm.playlist.Playlist.data" class="py-name" href="#" onclick="return doclink('link-30', 'data', 'link-18');">data</a></tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
|
<a name="L44"></a><tt class="py-lineno"> 44</tt> <tt class="py-line"> <tt class="py-keyword">yield</tt> <tt class="py-name">e</tt> </tt>
|
|
</div><a name="L45"></a><tt class="py-lineno"> 45</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">gen</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
|
|
</div><a name="L46"></a><tt class="py-lineno"> 46</tt> <tt class="py-line"> </tt>
|
|
<a name="L47"></a><tt class="py-lineno"> 47</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">staticmethod</tt> </tt>
|
|
<a name="Geo.get_top_artists"></a><div id="Geo.get_top_artists-def"><a name="L48"></a><tt class="py-lineno"> 48</tt> <a class="py-toggle" href="#" id="Geo.get_top_artists-toggle" onclick="return toggle('Geo.get_top_artists');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="lastfm.geo.Geo-class.html#get_top_artists">get_top_artists</a><tt class="py-op">(</tt><tt class="py-param">api</tt><tt class="py-op">,</tt> <tt class="py-param">country</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
|
</div><div id="Geo.get_top_artists-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Geo.get_top_artists-expanded"><a name="L49"></a><tt class="py-lineno"> 49</tt> <tt class="py-line"> <tt class="py-name">params</tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-string">'method'</tt><tt class="py-op">:</tt> <tt class="py-string">'geo.getTopArtists'</tt><tt class="py-op">,</tt> <tt class="py-string">'country'</tt><tt class="py-op">:</tt> <tt id="link-31" class="py-name" targets="Variable lastfm.geo.Location.country=lastfm.geo.Location-class.html#country,Variable lastfm.user.User.country=lastfm.user.User-class.html#country"><a title="lastfm.geo.Location.country
|
|
lastfm.user.User.country" class="py-name" href="#" onclick="return doclink('link-31', 'country', 'link-31');">country</a></tt><tt class="py-op">}</tt> </tt>
|
|
<a name="L50"></a><tt class="py-lineno"> 50</tt> <tt class="py-line"> <tt id="link-32" class="py-name"><a title="lastfm.playlist.Playlist.data" class="py-name" href="#" onclick="return doclink('link-32', 'data', 'link-18');">data</a></tt> <tt class="py-op">=</tt> <tt id="link-33" class="py-name"><a title="lastfm.api" class="py-name" href="#" onclick="return doclink('link-33', 'api', 'link-19');">api</a></tt><tt class="py-op">.</tt><tt id="link-34" class="py-name"><a title="lastfm.album.Album._fetch_data
|
|
lastfm.api.Api._fetch_data
|
|
lastfm.artist.Artist._fetch_data
|
|
lastfm.track.Track._fetch_data" class="py-name" href="#" onclick="return doclink('link-34', '_fetch_data', 'link-20');">_fetch_data</a></tt><tt class="py-op">(</tt><tt class="py-name">params</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">find</tt><tt class="py-op">(</tt><tt class="py-string">'topartists'</tt><tt class="py-op">)</tt> </tt>
|
|
<a name="L51"></a><tt class="py-lineno"> 51</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-op">[</tt> </tt>
|
|
<a name="L52"></a><tt class="py-lineno"> 52</tt> <tt class="py-line"> <tt id="link-35" class="py-name" targets="Class lastfm.artist.Artist=lastfm.artist.Artist-class.html"><a title="lastfm.artist.Artist" class="py-name" href="#" onclick="return doclink('link-35', 'Artist', 'link-35');">Artist</a></tt><tt class="py-op">(</tt> </tt>
|
|
<a name="L53"></a><tt class="py-lineno"> 53</tt> <tt class="py-line"> <tt id="link-36" class="py-name"><a title="lastfm.api" class="py-name" href="#" onclick="return doclink('link-36', 'api', 'link-19');">api</a></tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L54"></a><tt class="py-lineno"> 54</tt> <tt class="py-line"> <tt id="link-37" class="py-name" targets="Variable lastfm.album.Album.name=lastfm.album.Album-class.html#name,Variable lastfm.artist.Artist.name=lastfm.artist.Artist-class.html#name,Variable lastfm.geo.Country.name=lastfm.geo.Country-class.html#name,Variable lastfm.group.Group.name=lastfm.group.Group-class.html#name,Variable lastfm.tag.Tag.name=lastfm.tag.Tag-class.html#name,Variable lastfm.track.Track.name=lastfm.track.Track-class.html#name,Variable lastfm.user.User.name=lastfm.user.User-class.html#name,Variable lastfm.venue.Venue.name=lastfm.venue.Venue-class.html#name"><a title="lastfm.album.Album.name
|
|
lastfm.artist.Artist.name
|
|
lastfm.geo.Country.name
|
|
lastfm.group.Group.name
|
|
lastfm.tag.Tag.name
|
|
lastfm.track.Track.name
|
|
lastfm.user.User.name
|
|
lastfm.venue.Venue.name" class="py-name" href="#" onclick="return doclink('link-37', 'name', 'link-37');">name</a></tt> <tt class="py-op">=</tt> <tt class="py-name">a</tt><tt class="py-op">.</tt><tt class="py-name">findtext</tt><tt class="py-op">(</tt><tt class="py-string">'name'</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L55"></a><tt class="py-lineno"> 55</tt> <tt class="py-line"> <tt id="link-38" class="py-name" targets="Variable lastfm.album.Album.mbid=lastfm.album.Album-class.html#mbid,Variable lastfm.artist.Artist.mbid=lastfm.artist.Artist-class.html#mbid,Variable lastfm.track.Track.mbid=lastfm.track.Track-class.html#mbid"><a title="lastfm.album.Album.mbid
|
|
lastfm.artist.Artist.mbid
|
|
lastfm.track.Track.mbid" class="py-name" href="#" onclick="return doclink('link-38', 'mbid', 'link-38');">mbid</a></tt> <tt class="py-op">=</tt> <tt class="py-name">a</tt><tt class="py-op">.</tt><tt class="py-name">findtext</tt><tt class="py-op">(</tt><tt class="py-string">'mbid'</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L56"></a><tt class="py-lineno"> 56</tt> <tt class="py-line"> <tt id="link-39" class="py-name" targets="Variable lastfm.album.Album.stats=lastfm.album.Album-class.html#stats,Variable lastfm.artist.Artist.stats=lastfm.artist.Artist-class.html#stats,Variable lastfm.event.Event.stats=lastfm.event.Event-class.html#stats,Module lastfm.stats=lastfm.stats-module.html,Variable lastfm.tag.Tag.stats=lastfm.tag.Tag-class.html#stats,Variable lastfm.track.Track.stats=lastfm.track.Track-class.html#stats,Variable lastfm.user.User.stats=lastfm.user.User-class.html#stats,Variable lastfm.weeklychart.WeeklyChart.stats=lastfm.weeklychart.WeeklyChart-class.html#stats"><a title="lastfm.album.Album.stats
|
|
lastfm.artist.Artist.stats
|
|
lastfm.event.Event.stats
|
|
lastfm.stats
|
|
lastfm.tag.Tag.stats
|
|
lastfm.track.Track.stats
|
|
lastfm.user.User.stats
|
|
lastfm.weeklychart.WeeklyChart.stats" class="py-name" href="#" onclick="return doclink('link-39', 'stats', 'link-39');">stats</a></tt> <tt class="py-op">=</tt> <tt id="link-40" class="py-name" targets="Class lastfm.stats.Stats=lastfm.stats.Stats-class.html"><a title="lastfm.stats.Stats" class="py-name" href="#" onclick="return doclink('link-40', 'Stats', 'link-40');">Stats</a></tt><tt class="py-op">(</tt> </tt>
|
|
<a name="L57"></a><tt class="py-lineno"> 57</tt> <tt class="py-line"> <tt id="link-41" class="py-name" targets="Variable lastfm.stats.Stats.subject=lastfm.stats.Stats-class.html#subject,Variable lastfm.weeklychart.WeeklyChart.subject=lastfm.weeklychart.WeeklyChart-class.html#subject,Variable lastfm.wiki.Wiki.subject=lastfm.wiki.Wiki-class.html#subject"><a title="lastfm.stats.Stats.subject
|
|
lastfm.weeklychart.WeeklyChart.subject
|
|
lastfm.wiki.Wiki.subject" class="py-name" href="#" onclick="return doclink('link-41', 'subject', 'link-41');">subject</a></tt> <tt class="py-op">=</tt> <tt class="py-name">a</tt><tt class="py-op">.</tt><tt class="py-name">findtext</tt><tt class="py-op">(</tt><tt class="py-string">'name'</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L58"></a><tt class="py-lineno"> 58</tt> <tt class="py-line"> <tt id="link-42" class="py-name" targets="Variable lastfm.stats.Stats.rank=lastfm.stats.Stats-class.html#rank"><a title="lastfm.stats.Stats.rank" class="py-name" href="#" onclick="return doclink('link-42', 'rank', 'link-42');">rank</a></tt> <tt class="py-op">=</tt> <tt class="py-name">int</tt><tt class="py-op">(</tt><tt class="py-name">a</tt><tt class="py-op">.</tt><tt class="py-name">attrib</tt><tt class="py-op">[</tt><tt class="py-string">'rank'</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L59"></a><tt class="py-lineno"> 59</tt> <tt class="py-line"> <tt id="link-43" class="py-name" targets="Variable lastfm.stats.Stats.playcount=lastfm.stats.Stats-class.html#playcount"><a title="lastfm.stats.Stats.playcount" class="py-name" href="#" onclick="return doclink('link-43', 'playcount', 'link-43');">playcount</a></tt> <tt class="py-op">=</tt> <tt class="py-name">int</tt><tt class="py-op">(</tt><tt class="py-name">a</tt><tt class="py-op">.</tt><tt class="py-name">findtext</tt><tt class="py-op">(</tt><tt class="py-string">'playcount'</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
|
|
<a name="L60"></a><tt class="py-lineno"> 60</tt> <tt class="py-line"> <tt class="py-op">)</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L61"></a><tt class="py-lineno"> 61</tt> <tt class="py-line"> <tt id="link-44" class="py-name" targets="Variable lastfm.album.Album.url=lastfm.album.Album-class.html#url,Variable lastfm.artist.Artist.url=lastfm.artist.Artist-class.html#url,Variable lastfm.event.Event.url=lastfm.event.Event-class.html#url,Variable lastfm.playlist.Playlist.url=lastfm.playlist.Playlist-class.html#url,Variable lastfm.tag.Tag.url=lastfm.tag.Tag-class.html#url,Variable lastfm.track.Track.url=lastfm.track.Track-class.html#url,Variable lastfm.user.User.url=lastfm.user.User-class.html#url,Variable lastfm.venue.Venue.url=lastfm.venue.Venue-class.html#url"><a title="lastfm.album.Album.url
|
|
lastfm.artist.Artist.url
|
|
lastfm.event.Event.url
|
|
lastfm.playlist.Playlist.url
|
|
lastfm.tag.Tag.url
|
|
lastfm.track.Track.url
|
|
lastfm.user.User.url
|
|
lastfm.venue.Venue.url" class="py-name" href="#" onclick="return doclink('link-44', 'url', 'link-44');">url</a></tt> <tt class="py-op">=</tt> <tt class="py-string">'http://'</tt> <tt class="py-op">+</tt> <tt class="py-name">a</tt><tt class="py-op">.</tt><tt class="py-name">findtext</tt><tt class="py-op">(</tt><tt class="py-string">'url'</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L62"></a><tt class="py-lineno"> 62</tt> <tt class="py-line"> <tt id="link-45" class="py-name" targets="Variable lastfm.album.Album.image=lastfm.album.Album-class.html#image,Variable lastfm.artist.Artist.image=lastfm.artist.Artist-class.html#image,Variable lastfm.event.Event.image=lastfm.event.Event-class.html#image,Variable lastfm.track.Track.image=lastfm.track.Track-class.html#image,Variable lastfm.user.User.image=lastfm.user.User-class.html#image"><a title="lastfm.album.Album.image
|
|
lastfm.artist.Artist.image
|
|
lastfm.event.Event.image
|
|
lastfm.track.Track.image
|
|
lastfm.user.User.image" class="py-name" href="#" onclick="return doclink('link-45', 'image', 'link-45');">image</a></tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-string">'large'</tt><tt class="py-op">:</tt> <tt class="py-name">a</tt><tt class="py-op">.</tt><tt class="py-name">findtext</tt><tt class="py-op">(</tt><tt class="py-string">'image'</tt><tt class="py-op">)</tt><tt class="py-op">}</tt> </tt>
|
|
<a name="L63"></a><tt class="py-lineno"> 63</tt> <tt class="py-line"> <tt class="py-op">)</tt> </tt>
|
|
<a name="L64"></a><tt class="py-lineno"> 64</tt> <tt class="py-line"> <tt class="py-keyword">for</tt> <tt class="py-name">a</tt> <tt class="py-keyword">in</tt> <tt id="link-46" class="py-name"><a title="lastfm.playlist.Playlist.data" class="py-name" href="#" onclick="return doclink('link-46', 'data', 'link-18');">data</a></tt><tt class="py-op">.</tt><tt class="py-name">findall</tt><tt class="py-op">(</tt><tt class="py-string">'artist'</tt><tt class="py-op">)</tt> </tt>
|
|
<a name="L65"></a><tt class="py-lineno"> 65</tt> <tt class="py-line"> <tt class="py-op">]</tt> </tt>
|
|
</div><a name="L66"></a><tt class="py-lineno"> 66</tt> <tt class="py-line"> </tt>
|
|
<a name="L67"></a><tt class="py-lineno"> 67</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">staticmethod</tt> </tt>
|
|
<a name="Geo.get_top_tracks"></a><div id="Geo.get_top_tracks-def"><a name="L68"></a><tt class="py-lineno"> 68</tt> <a class="py-toggle" href="#" id="Geo.get_top_tracks-toggle" onclick="return toggle('Geo.get_top_tracks');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="lastfm.geo.Geo-class.html#get_top_tracks">get_top_tracks</a><tt class="py-op">(</tt><tt class="py-param">api</tt><tt class="py-op">,</tt> <tt class="py-param">country</tt><tt class="py-op">,</tt> <tt class="py-param">location</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
|
</div><div id="Geo.get_top_tracks-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Geo.get_top_tracks-expanded"><a name="L69"></a><tt class="py-lineno"> 69</tt> <tt class="py-line"> <tt class="py-name">params</tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-string">'method'</tt><tt class="py-op">:</tt> <tt class="py-string">'geo.getTopTracks'</tt><tt class="py-op">,</tt> <tt class="py-string">'country'</tt><tt class="py-op">:</tt> <tt id="link-47" class="py-name"><a title="lastfm.geo.Location.country
|
|
lastfm.user.User.country" class="py-name" href="#" onclick="return doclink('link-47', 'country', 'link-31');">country</a></tt><tt class="py-op">}</tt> </tt>
|
|
<a name="L70"></a><tt class="py-lineno"> 70</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt id="link-48" class="py-name"><a title="lastfm.venue.Venue.location" class="py-name" href="#" onclick="return doclink('link-48', 'location', 'link-13');">location</a></tt> <tt class="py-keyword">is</tt> <tt class="py-keyword">not</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
|
|
<a name="L71"></a><tt class="py-lineno"> 71</tt> <tt class="py-line"> <tt class="py-name">params</tt><tt class="py-op">.</tt><tt class="py-name">update</tt><tt class="py-op">(</tt><tt class="py-op">{</tt><tt class="py-string">'location'</tt><tt class="py-op">:</tt> <tt id="link-49" class="py-name"><a title="lastfm.venue.Venue.location" class="py-name" href="#" onclick="return doclink('link-49', 'location', 'link-13');">location</a></tt><tt class="py-op">}</tt><tt class="py-op">)</tt> </tt>
|
|
<a name="L72"></a><tt class="py-lineno"> 72</tt> <tt class="py-line"> </tt>
|
|
<a name="L73"></a><tt class="py-lineno"> 73</tt> <tt class="py-line"> <tt id="link-50" class="py-name"><a title="lastfm.playlist.Playlist.data" class="py-name" href="#" onclick="return doclink('link-50', 'data', 'link-18');">data</a></tt> <tt class="py-op">=</tt> <tt id="link-51" class="py-name"><a title="lastfm.api" class="py-name" href="#" onclick="return doclink('link-51', 'api', 'link-19');">api</a></tt><tt class="py-op">.</tt><tt id="link-52" class="py-name"><a title="lastfm.album.Album._fetch_data
|
|
lastfm.api.Api._fetch_data
|
|
lastfm.artist.Artist._fetch_data
|
|
lastfm.track.Track._fetch_data" class="py-name" href="#" onclick="return doclink('link-52', '_fetch_data', 'link-20');">_fetch_data</a></tt><tt class="py-op">(</tt><tt class="py-name">params</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">find</tt><tt class="py-op">(</tt><tt class="py-string">'toptracks'</tt><tt class="py-op">)</tt> </tt>
|
|
<a name="L74"></a><tt class="py-lineno"> 74</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-op">[</tt> </tt>
|
|
<a name="L75"></a><tt class="py-lineno"> 75</tt> <tt class="py-line"> <tt id="link-53" class="py-name" targets="Class lastfm.track.Track=lastfm.track.Track-class.html"><a title="lastfm.track.Track" class="py-name" href="#" onclick="return doclink('link-53', 'Track', 'link-53');">Track</a></tt><tt class="py-op">(</tt> </tt>
|
|
<a name="L76"></a><tt class="py-lineno"> 76</tt> <tt class="py-line"> <tt id="link-54" class="py-name"><a title="lastfm.api" class="py-name" href="#" onclick="return doclink('link-54', 'api', 'link-19');">api</a></tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L77"></a><tt class="py-lineno"> 77</tt> <tt class="py-line"> <tt id="link-55" class="py-name"><a title="lastfm.album.Album.name
|
|
lastfm.artist.Artist.name
|
|
lastfm.geo.Country.name
|
|
lastfm.group.Group.name
|
|
lastfm.tag.Tag.name
|
|
lastfm.track.Track.name
|
|
lastfm.user.User.name
|
|
lastfm.venue.Venue.name" class="py-name" href="#" onclick="return doclink('link-55', 'name', 'link-37');">name</a></tt> <tt class="py-op">=</tt> <tt class="py-name">t</tt><tt class="py-op">.</tt><tt class="py-name">findtext</tt><tt class="py-op">(</tt><tt class="py-string">'name'</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L78"></a><tt class="py-lineno"> 78</tt> <tt class="py-line"> <tt id="link-56" class="py-name"><a title="lastfm.album.Album.mbid
|
|
lastfm.artist.Artist.mbid
|
|
lastfm.track.Track.mbid" class="py-name" href="#" onclick="return doclink('link-56', 'mbid', 'link-38');">mbid</a></tt> <tt class="py-op">=</tt> <tt class="py-name">t</tt><tt class="py-op">.</tt><tt class="py-name">findtext</tt><tt class="py-op">(</tt><tt class="py-string">'mbid'</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L79"></a><tt class="py-lineno"> 79</tt> <tt class="py-line"> <tt id="link-57" class="py-name" targets="Variable lastfm.album.Album.artist=lastfm.album.Album-class.html#artist,Module lastfm.artist=lastfm.artist-module.html,Variable lastfm.track.Track.artist=lastfm.track.Track-class.html#artist"><a title="lastfm.album.Album.artist
|
|
lastfm.artist
|
|
lastfm.track.Track.artist" class="py-name" href="#" onclick="return doclink('link-57', 'artist', 'link-57');">artist</a></tt> <tt class="py-op">=</tt> <tt id="link-58" class="py-name"><a title="lastfm.artist.Artist" class="py-name" href="#" onclick="return doclink('link-58', 'Artist', 'link-35');">Artist</a></tt><tt class="py-op">(</tt> </tt>
|
|
<a name="L80"></a><tt class="py-lineno"> 80</tt> <tt class="py-line"> <tt id="link-59" class="py-name"><a title="lastfm.api" class="py-name" href="#" onclick="return doclink('link-59', 'api', 'link-19');">api</a></tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L81"></a><tt class="py-lineno"> 81</tt> <tt class="py-line"> <tt id="link-60" class="py-name"><a title="lastfm.album.Album.name
|
|
lastfm.artist.Artist.name
|
|
lastfm.geo.Country.name
|
|
lastfm.group.Group.name
|
|
lastfm.tag.Tag.name
|
|
lastfm.track.Track.name
|
|
lastfm.user.User.name
|
|
lastfm.venue.Venue.name" class="py-name" href="#" onclick="return doclink('link-60', 'name', 'link-37');">name</a></tt> <tt class="py-op">=</tt> <tt class="py-name">t</tt><tt class="py-op">.</tt><tt class="py-name">findtext</tt><tt class="py-op">(</tt><tt class="py-string">'artist/name'</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L82"></a><tt class="py-lineno"> 82</tt> <tt class="py-line"> <tt id="link-61" class="py-name"><a title="lastfm.album.Album.mbid
|
|
lastfm.artist.Artist.mbid
|
|
lastfm.track.Track.mbid" class="py-name" href="#" onclick="return doclink('link-61', 'mbid', 'link-38');">mbid</a></tt> <tt class="py-op">=</tt> <tt class="py-name">t</tt><tt class="py-op">.</tt><tt class="py-name">findtext</tt><tt class="py-op">(</tt><tt class="py-string">'artist/mbid'</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L83"></a><tt class="py-lineno"> 83</tt> <tt class="py-line"> <tt id="link-62" class="py-name"><a title="lastfm.album.Album.url
|
|
lastfm.artist.Artist.url
|
|
lastfm.event.Event.url
|
|
lastfm.playlist.Playlist.url
|
|
lastfm.tag.Tag.url
|
|
lastfm.track.Track.url
|
|
lastfm.user.User.url
|
|
lastfm.venue.Venue.url" class="py-name" href="#" onclick="return doclink('link-62', 'url', 'link-44');">url</a></tt> <tt class="py-op">=</tt> <tt class="py-name">t</tt><tt class="py-op">.</tt><tt class="py-name">findtext</tt><tt class="py-op">(</tt><tt class="py-string">'artist/url'</tt><tt class="py-op">)</tt> </tt>
|
|
<a name="L84"></a><tt class="py-lineno"> 84</tt> <tt class="py-line"> <tt class="py-op">)</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L85"></a><tt class="py-lineno"> 85</tt> <tt class="py-line"> <tt id="link-63" class="py-name"><a title="lastfm.album.Album.stats
|
|
lastfm.artist.Artist.stats
|
|
lastfm.event.Event.stats
|
|
lastfm.stats
|
|
lastfm.tag.Tag.stats
|
|
lastfm.track.Track.stats
|
|
lastfm.user.User.stats
|
|
lastfm.weeklychart.WeeklyChart.stats" class="py-name" href="#" onclick="return doclink('link-63', 'stats', 'link-39');">stats</a></tt> <tt class="py-op">=</tt> <tt id="link-64" class="py-name"><a title="lastfm.stats.Stats" class="py-name" href="#" onclick="return doclink('link-64', 'Stats', 'link-40');">Stats</a></tt><tt class="py-op">(</tt> </tt>
|
|
<a name="L86"></a><tt class="py-lineno"> 86</tt> <tt class="py-line"> <tt id="link-65" class="py-name"><a title="lastfm.stats.Stats.subject
|
|
lastfm.weeklychart.WeeklyChart.subject
|
|
lastfm.wiki.Wiki.subject" class="py-name" href="#" onclick="return doclink('link-65', 'subject', 'link-41');">subject</a></tt> <tt class="py-op">=</tt> <tt class="py-name">t</tt><tt class="py-op">.</tt><tt class="py-name">findtext</tt><tt class="py-op">(</tt><tt class="py-string">'name'</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L87"></a><tt class="py-lineno"> 87</tt> <tt class="py-line"> <tt id="link-66" class="py-name"><a title="lastfm.stats.Stats.rank" class="py-name" href="#" onclick="return doclink('link-66', 'rank', 'link-42');">rank</a></tt> <tt class="py-op">=</tt> <tt class="py-name">int</tt><tt class="py-op">(</tt><tt class="py-name">t</tt><tt class="py-op">.</tt><tt class="py-name">attrib</tt><tt class="py-op">[</tt><tt class="py-string">'rank'</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L88"></a><tt class="py-lineno"> 88</tt> <tt class="py-line"> <tt id="link-67" class="py-name"><a title="lastfm.stats.Stats.playcount" class="py-name" href="#" onclick="return doclink('link-67', 'playcount', 'link-43');">playcount</a></tt> <tt class="py-op">=</tt> <tt class="py-name">int</tt><tt class="py-op">(</tt><tt class="py-name">t</tt><tt class="py-op">.</tt><tt class="py-name">findtext</tt><tt class="py-op">(</tt><tt class="py-string">'playcount'</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
|
|
<a name="L89"></a><tt class="py-lineno"> 89</tt> <tt class="py-line"> <tt class="py-op">)</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L90"></a><tt class="py-lineno"> 90</tt> <tt class="py-line"> <tt id="link-68" class="py-name" targets="Variable lastfm.album.Album.streamable=lastfm.album.Album-class.html#streamable,Variable lastfm.artist.Artist.streamable=lastfm.artist.Artist-class.html#streamable,Variable lastfm.tag.Tag.streamable=lastfm.tag.Tag-class.html#streamable,Variable lastfm.track.Track.streamable=lastfm.track.Track-class.html#streamable"><a title="lastfm.album.Album.streamable
|
|
lastfm.artist.Artist.streamable
|
|
lastfm.tag.Tag.streamable
|
|
lastfm.track.Track.streamable" class="py-name" href="#" onclick="return doclink('link-68', 'streamable', 'link-68');">streamable</a></tt> <tt class="py-op">=</tt> <tt class="py-op">(</tt><tt class="py-name">t</tt><tt class="py-op">.</tt><tt class="py-name">findtext</tt><tt class="py-op">(</tt><tt class="py-string">'streamable'</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-string">'1'</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L91"></a><tt class="py-lineno"> 91</tt> <tt class="py-line"> <tt id="link-69" class="py-name" targets="Variable lastfm.track.Track.full_track=lastfm.track.Track-class.html#full_track"><a title="lastfm.track.Track.full_track" class="py-name" href="#" onclick="return doclink('link-69', 'full_track', 'link-69');">full_track</a></tt> <tt class="py-op">=</tt> <tt class="py-op">(</tt><tt class="py-name">t</tt><tt class="py-op">.</tt><tt class="py-name">find</tt><tt class="py-op">(</tt><tt class="py-string">'streamable'</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">attrib</tt><tt class="py-op">[</tt><tt class="py-string">'fulltrack'</tt><tt class="py-op">]</tt> <tt class="py-op">==</tt> <tt class="py-string">'1'</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L92"></a><tt class="py-lineno"> 92</tt> <tt class="py-line"> <tt id="link-70" class="py-name"><a title="lastfm.album.Album.url
|
|
lastfm.artist.Artist.url
|
|
lastfm.event.Event.url
|
|
lastfm.playlist.Playlist.url
|
|
lastfm.tag.Tag.url
|
|
lastfm.track.Track.url
|
|
lastfm.user.User.url
|
|
lastfm.venue.Venue.url" class="py-name" href="#" onclick="return doclink('link-70', 'url', 'link-44');">url</a></tt> <tt class="py-op">=</tt> <tt class="py-string">'http://'</tt> <tt class="py-op">+</tt> <tt class="py-name">t</tt><tt class="py-op">.</tt><tt class="py-name">findtext</tt><tt class="py-op">(</tt><tt class="py-string">'url'</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L93"></a><tt class="py-lineno"> 93</tt> <tt class="py-line"> <tt id="link-71" class="py-name"><a title="lastfm.album.Album.image
|
|
lastfm.artist.Artist.image
|
|
lastfm.event.Event.image
|
|
lastfm.track.Track.image
|
|
lastfm.user.User.image" class="py-name" href="#" onclick="return doclink('link-71', 'image', 'link-45');">image</a></tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-string">'large'</tt><tt class="py-op">:</tt> <tt class="py-name">t</tt><tt class="py-op">.</tt><tt class="py-name">findtext</tt><tt class="py-op">(</tt><tt class="py-string">'image'</tt><tt class="py-op">)</tt><tt class="py-op">}</tt> </tt>
|
|
<a name="L94"></a><tt class="py-lineno"> 94</tt> <tt class="py-line"> <tt class="py-op">)</tt> </tt>
|
|
<a name="L95"></a><tt class="py-lineno"> 95</tt> <tt class="py-line"> <tt class="py-keyword">for</tt> <tt class="py-name">t</tt> <tt class="py-keyword">in</tt> <tt id="link-72" class="py-name"><a title="lastfm.playlist.Playlist.data" class="py-name" href="#" onclick="return doclink('link-72', 'data', 'link-18');">data</a></tt><tt class="py-op">.</tt><tt class="py-name">findall</tt><tt class="py-op">(</tt><tt class="py-string">'track'</tt><tt class="py-op">)</tt> </tt>
|
|
<a name="L96"></a><tt class="py-lineno"> 96</tt> <tt class="py-line"> <tt class="py-op">]</tt> </tt>
|
|
</div></div><a name="L97"></a><tt class="py-lineno"> 97</tt> <tt class="py-line"> </tt>
|
|
<a name="Location"></a><div id="Location-def"><a name="L98"></a><tt class="py-lineno"> 98</tt> <a class="py-toggle" href="#" id="Location-toggle" onclick="return toggle('Location');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="lastfm.geo.Location-class.html">Location</a><tt class="py-op">(</tt><tt class="py-base-class">LastfmBase</tt><tt class="py-op">,</tt> <tt class="py-base-class">Cacheable</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
|
</div><div id="Location-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="Location-expanded"><a name="L99"></a><tt class="py-lineno"> 99</tt> <tt class="py-line"> <tt class="py-docstring">"""A class representing a location of an event"""</tt> </tt>
|
|
<a name="L100"></a><tt class="py-lineno">100</tt> <tt class="py-line"> <tt id="link-73" class="py-name" targets="Variable lastfm.geo.Location.XMLNS=lastfm.geo.Location-class.html#XMLNS"><a title="lastfm.geo.Location.XMLNS" class="py-name" href="#" onclick="return doclink('link-73', 'XMLNS', 'link-73');">XMLNS</a></tt> <tt class="py-op">=</tt> <tt class="py-string">"http://www.w3.org/2003/01/geo/wgs84_pos#"</tt> </tt>
|
|
<a name="L101"></a><tt class="py-lineno">101</tt> <tt class="py-line"> </tt>
|
|
<a name="Location.init"></a><div id="Location.init-def"><a name="L102"></a><tt class="py-lineno">102</tt> <a class="py-toggle" href="#" id="Location.init-toggle" onclick="return toggle('Location.init');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="lastfm.geo.Location-class.html#init">init</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L103"></a><tt class="py-lineno">103</tt> <tt class="py-line"> <tt class="py-param">api</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L104"></a><tt class="py-lineno">104</tt> <tt class="py-line"> <tt class="py-param">city</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L105"></a><tt class="py-lineno">105</tt> <tt class="py-line"> <tt class="py-param">country</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L106"></a><tt class="py-lineno">106</tt> <tt class="py-line"> <tt class="py-param">street</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L107"></a><tt class="py-lineno">107</tt> <tt class="py-line"> <tt class="py-param">postal_code</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L108"></a><tt class="py-lineno">108</tt> <tt class="py-line"> <tt class="py-param">latitude</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L109"></a><tt class="py-lineno">109</tt> <tt class="py-line"> <tt class="py-param">longitude</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L110"></a><tt class="py-lineno">110</tt> <tt class="py-line"> <tt class="py-param">timezone</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L111"></a><tt class="py-lineno">111</tt> <tt class="py-line"> <tt class="py-op">**</tt><tt class="py-param">kwargs</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
|
</div><div id="Location.init-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Location.init-expanded"><a name="L112"></a><tt class="py-lineno">112</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">isinstance</tt><tt class="py-op">(</tt><tt id="link-74" class="py-name"><a title="lastfm.api" class="py-name" href="#" onclick="return doclink('link-74', 'api', 'link-19');">api</a></tt><tt class="py-op">,</tt> <tt id="link-75" class="py-name" targets="Class lastfm.api.Api=lastfm.api.Api-class.html"><a title="lastfm.api.Api" class="py-name" href="#" onclick="return doclink('link-75', 'Api', 'link-75');">Api</a></tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
|
<a name="L113"></a><tt class="py-lineno">113</tt> <tt class="py-line"> <tt class="py-keyword">raise</tt> <tt id="link-76" class="py-name" targets="Class lastfm.error.InvalidParametersError=lastfm.error.InvalidParametersError-class.html"><a title="lastfm.error.InvalidParametersError" class="py-name" href="#" onclick="return doclink('link-76', 'InvalidParametersError', 'link-76');">InvalidParametersError</a></tt><tt class="py-op">(</tt><tt class="py-string">"api reference must be supplied as an argument"</tt><tt class="py-op">)</tt> </tt>
|
|
<a name="L114"></a><tt class="py-lineno">114</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_api</tt> <tt class="py-op">=</tt> <tt id="link-77" class="py-name"><a title="lastfm.api" class="py-name" href="#" onclick="return doclink('link-77', 'api', 'link-19');">api</a></tt> </tt>
|
|
<a name="L115"></a><tt class="py-lineno">115</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_city</tt> <tt class="py-op">=</tt> <tt id="link-78" class="py-name" targets="Variable lastfm.geo.Location.city=lastfm.geo.Location-class.html#city"><a title="lastfm.geo.Location.city" class="py-name" href="#" onclick="return doclink('link-78', 'city', 'link-78');">city</a></tt> </tt>
|
|
<a name="L116"></a><tt class="py-lineno">116</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_country</tt> <tt class="py-op">=</tt> <tt id="link-79" class="py-name"><a title="lastfm.geo.Location.country
|
|
lastfm.user.User.country" class="py-name" href="#" onclick="return doclink('link-79', 'country', 'link-31');">country</a></tt> </tt>
|
|
<a name="L117"></a><tt class="py-lineno">117</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_street</tt> <tt class="py-op">=</tt> <tt id="link-80" class="py-name" targets="Variable lastfm.geo.Location.street=lastfm.geo.Location-class.html#street"><a title="lastfm.geo.Location.street" class="py-name" href="#" onclick="return doclink('link-80', 'street', 'link-80');">street</a></tt> </tt>
|
|
<a name="L118"></a><tt class="py-lineno">118</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_postal_code</tt> <tt class="py-op">=</tt> <tt id="link-81" class="py-name" targets="Variable lastfm.geo.Location.postal_code=lastfm.geo.Location-class.html#postal_code"><a title="lastfm.geo.Location.postal_code" class="py-name" href="#" onclick="return doclink('link-81', 'postal_code', 'link-81');">postal_code</a></tt> </tt>
|
|
<a name="L119"></a><tt class="py-lineno">119</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_latitude</tt> <tt class="py-op">=</tt> <tt id="link-82" class="py-name"><a title="lastfm.geo.Location.latitude" class="py-name" href="#" onclick="return doclink('link-82', 'latitude', 'link-14');">latitude</a></tt> </tt>
|
|
<a name="L120"></a><tt class="py-lineno">120</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_longitude</tt> <tt class="py-op">=</tt> <tt id="link-83" class="py-name"><a title="lastfm.geo.Location.longitude" class="py-name" href="#" onclick="return doclink('link-83', 'longitude', 'link-15');">longitude</a></tt> </tt>
|
|
<a name="L121"></a><tt class="py-lineno">121</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_timezone</tt> <tt class="py-op">=</tt> <tt id="link-84" class="py-name" targets="Variable lastfm.geo.Location.timezone=lastfm.geo.Location-class.html#timezone"><a title="lastfm.geo.Location.timezone" class="py-name" href="#" onclick="return doclink('link-84', 'timezone', 'link-84');">timezone</a></tt> </tt>
|
|
</div><a name="L122"></a><tt class="py-lineno">122</tt> <tt class="py-line"> </tt>
|
|
<a name="L123"></a><tt class="py-lineno">123</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
|
|
<a name="Location.city"></a><div id="Location.city-def"><a name="L124"></a><tt class="py-lineno">124</tt> <a class="py-toggle" href="#" id="Location.city-toggle" onclick="return toggle('Location.city');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="lastfm.geo.Location-class.html#city">city</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
|
</div><div id="Location.city-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Location.city-expanded"><a name="L125"></a><tt class="py-lineno">125</tt> <tt class="py-line"> <tt class="py-docstring">"""city in which the location is situated"""</tt> </tt>
|
|
<a name="L126"></a><tt class="py-lineno">126</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_city</tt> </tt>
|
|
</div><a name="L127"></a><tt class="py-lineno">127</tt> <tt class="py-line"> </tt>
|
|
<a name="L128"></a><tt class="py-lineno">128</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
|
|
<a name="Location.country"></a><div id="Location.country-def"><a name="L129"></a><tt class="py-lineno">129</tt> <a class="py-toggle" href="#" id="Location.country-toggle" onclick="return toggle('Location.country');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="lastfm.geo.Location-class.html#country">country</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
|
</div><div id="Location.country-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Location.country-expanded"><a name="L130"></a><tt class="py-lineno">130</tt> <tt class="py-line"> <tt class="py-docstring">"""country in which the location is situated"""</tt> </tt>
|
|
<a name="L131"></a><tt class="py-lineno">131</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_country</tt> </tt>
|
|
</div><a name="L132"></a><tt class="py-lineno">132</tt> <tt class="py-line"> </tt>
|
|
<a name="L133"></a><tt class="py-lineno">133</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
|
|
<a name="Location.street"></a><div id="Location.street-def"><a name="L134"></a><tt class="py-lineno">134</tt> <a class="py-toggle" href="#" id="Location.street-toggle" onclick="return toggle('Location.street');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="lastfm.geo.Location-class.html#street">street</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
|
</div><div id="Location.street-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Location.street-expanded"><a name="L135"></a><tt class="py-lineno">135</tt> <tt class="py-line"> <tt class="py-docstring">"""street in which the location is situated"""</tt> </tt>
|
|
<a name="L136"></a><tt class="py-lineno">136</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_street</tt> </tt>
|
|
</div><a name="L137"></a><tt class="py-lineno">137</tt> <tt class="py-line"> </tt>
|
|
<a name="L138"></a><tt class="py-lineno">138</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
|
|
<a name="Location.postal_code"></a><div id="Location.postal_code-def"><a name="L139"></a><tt class="py-lineno">139</tt> <a class="py-toggle" href="#" id="Location.postal_code-toggle" onclick="return toggle('Location.postal_code');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="lastfm.geo.Location-class.html#postal_code">postal_code</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
|
</div><div id="Location.postal_code-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Location.postal_code-expanded"><a name="L140"></a><tt class="py-lineno">140</tt> <tt class="py-line"> <tt class="py-docstring">"""postal code of the location"""</tt> </tt>
|
|
<a name="L141"></a><tt class="py-lineno">141</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_postal_code</tt> </tt>
|
|
</div><a name="L142"></a><tt class="py-lineno">142</tt> <tt class="py-line"> </tt>
|
|
<a name="L143"></a><tt class="py-lineno">143</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
|
|
<a name="Location.latitude"></a><div id="Location.latitude-def"><a name="L144"></a><tt class="py-lineno">144</tt> <a class="py-toggle" href="#" id="Location.latitude-toggle" onclick="return toggle('Location.latitude');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="lastfm.geo.Location-class.html#latitude">latitude</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
|
</div><div id="Location.latitude-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Location.latitude-expanded"><a name="L145"></a><tt class="py-lineno">145</tt> <tt class="py-line"> <tt class="py-docstring">"""latitude of the location"""</tt> </tt>
|
|
<a name="L146"></a><tt class="py-lineno">146</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_latitude</tt> </tt>
|
|
</div><a name="L147"></a><tt class="py-lineno">147</tt> <tt class="py-line"> </tt>
|
|
<a name="L148"></a><tt class="py-lineno">148</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
|
|
<a name="Location.longitude"></a><div id="Location.longitude-def"><a name="L149"></a><tt class="py-lineno">149</tt> <a class="py-toggle" href="#" id="Location.longitude-toggle" onclick="return toggle('Location.longitude');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="lastfm.geo.Location-class.html#longitude">longitude</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
|
</div><div id="Location.longitude-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Location.longitude-expanded"><a name="L150"></a><tt class="py-lineno">150</tt> <tt class="py-line"> <tt class="py-docstring">"""longitude of the location"""</tt> </tt>
|
|
<a name="L151"></a><tt class="py-lineno">151</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_longitude</tt> </tt>
|
|
</div><a name="L152"></a><tt class="py-lineno">152</tt> <tt class="py-line"> </tt>
|
|
<a name="L153"></a><tt class="py-lineno">153</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
|
|
<a name="Location.timezone"></a><div id="Location.timezone-def"><a name="L154"></a><tt class="py-lineno">154</tt> <a class="py-toggle" href="#" id="Location.timezone-toggle" onclick="return toggle('Location.timezone');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="lastfm.geo.Location-class.html#timezone">timezone</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
|
</div><div id="Location.timezone-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Location.timezone-expanded"><a name="L155"></a><tt class="py-lineno">155</tt> <tt class="py-line"> <tt class="py-docstring">"""timezone in which the location is situated"""</tt> </tt>
|
|
<a name="L156"></a><tt class="py-lineno">156</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_timezone</tt> </tt>
|
|
</div><a name="L157"></a><tt class="py-lineno">157</tt> <tt class="py-line"> </tt>
|
|
<a name="L158"></a><tt class="py-lineno">158</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">cached_property</tt> </tt>
|
|
<a name="Location.top_tracks"></a><div id="Location.top_tracks-def"><a name="L159"></a><tt class="py-lineno">159</tt> <a class="py-toggle" href="#" id="Location.top_tracks-toggle" onclick="return toggle('Location.top_tracks');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="lastfm.geo.Location-class.html#top_tracks">top_tracks</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
|
</div><div id="Location.top_tracks-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Location.top_tracks-expanded"><a name="L160"></a><tt class="py-lineno">160</tt> <tt class="py-line"> <tt class="py-docstring">"""top tracks of the location"""</tt> </tt>
|
|
<a name="L161"></a><tt class="py-lineno">161</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-85" class="py-name"><a title="lastfm.geo.Location.country
|
|
lastfm.user.User.country" class="py-name" href="#" onclick="return doclink('link-85', 'country', 'link-31');">country</a></tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt> <tt class="py-keyword">or</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-86" class="py-name"><a title="lastfm.geo.Location.city" class="py-name" href="#" onclick="return doclink('link-86', 'city', 'link-78');">city</a></tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
|
|
<a name="L162"></a><tt class="py-lineno">162</tt> <tt class="py-line"> <tt class="py-keyword">raise</tt> <tt id="link-87" class="py-name"><a title="lastfm.error.InvalidParametersError" class="py-name" href="#" onclick="return doclink('link-87', 'InvalidParametersError', 'link-76');">InvalidParametersError</a></tt><tt class="py-op">(</tt><tt class="py-string">"country and city of this location are required for calling this method"</tt><tt class="py-op">)</tt> </tt>
|
|
<a name="L163"></a><tt class="py-lineno">163</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-88" class="py-name" targets="Class lastfm.geo.Geo=lastfm.geo.Geo-class.html"><a title="lastfm.geo.Geo" class="py-name" href="#" onclick="return doclink('link-88', 'Geo', 'link-88');">Geo</a></tt><tt class="py-op">.</tt><tt id="link-89" class="py-name" targets="Method lastfm.geo.Country.get_top_tracks()=lastfm.geo.Country-class.html#get_top_tracks,Static Method lastfm.geo.Geo.get_top_tracks()=lastfm.geo.Geo-class.html#get_top_tracks,Method lastfm.user.User.get_top_tracks()=lastfm.user.User-class.html#get_top_tracks"><a title="lastfm.geo.Country.get_top_tracks
|
|
lastfm.geo.Geo.get_top_tracks
|
|
lastfm.user.User.get_top_tracks" class="py-name" href="#" onclick="return doclink('link-89', 'get_top_tracks', 'link-89');">get_top_tracks</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_api</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-90" class="py-name"><a title="lastfm.geo.Location.country
|
|
lastfm.user.User.country" class="py-name" href="#" onclick="return doclink('link-90', 'country', 'link-31');">country</a></tt><tt class="py-op">.</tt><tt id="link-91" class="py-name"><a title="lastfm.album.Album.name
|
|
lastfm.artist.Artist.name
|
|
lastfm.geo.Country.name
|
|
lastfm.group.Group.name
|
|
lastfm.tag.Tag.name
|
|
lastfm.track.Track.name
|
|
lastfm.user.User.name
|
|
lastfm.venue.Venue.name" class="py-name" href="#" onclick="return doclink('link-91', 'name', 'link-37');">name</a></tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-92" class="py-name"><a title="lastfm.geo.Location.city" class="py-name" href="#" onclick="return doclink('link-92', 'city', 'link-78');">city</a></tt><tt class="py-op">)</tt> </tt>
|
|
</div><a name="L164"></a><tt class="py-lineno">164</tt> <tt class="py-line"> </tt>
|
|
<a name="L165"></a><tt class="py-lineno">165</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">top_property</tt><tt class="py-op">(</tt><tt class="py-string">"top_tracks"</tt><tt class="py-op">)</tt> </tt>
|
|
<a name="Location.top_track"></a><div id="Location.top_track-def"><a name="L166"></a><tt class="py-lineno">166</tt> <a class="py-toggle" href="#" id="Location.top_track-toggle" onclick="return toggle('Location.top_track');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="lastfm.geo.Location-class.html#top_track">top_track</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
|
</div><div id="Location.top_track-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Location.top_track-expanded"><a name="L167"></a><tt class="py-lineno">167</tt> <tt class="py-line"> <tt class="py-docstring">"""top track of the location"""</tt> </tt>
|
|
<a name="L168"></a><tt class="py-lineno">168</tt> <tt class="py-line"> <tt class="py-keyword">pass</tt> </tt>
|
|
</div><a name="L169"></a><tt class="py-lineno">169</tt> <tt class="py-line"> </tt>
|
|
<a name="Location.get_events"></a><div id="Location.get_events-def"><a name="L170"></a><tt class="py-lineno">170</tt> <a class="py-toggle" href="#" id="Location.get_events-toggle" onclick="return toggle('Location.get_events');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="lastfm.geo.Location-class.html#get_events">get_events</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L171"></a><tt class="py-lineno">171</tt> <tt class="py-line"> <tt class="py-param">distance</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
|
</div><div id="Location.get_events-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Location.get_events-expanded"><a name="L172"></a><tt class="py-lineno">172</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-93" class="py-name"><a title="lastfm.geo.Geo" class="py-name" href="#" onclick="return doclink('link-93', 'Geo', 'link-88');">Geo</a></tt><tt class="py-op">.</tt><tt id="link-94" class="py-name" targets="Static Method lastfm.geo.Geo.get_events()=lastfm.geo.Geo-class.html#get_events,Method lastfm.geo.Location.get_events()=lastfm.geo.Location-class.html#get_events"><a title="lastfm.geo.Geo.get_events
|
|
lastfm.geo.Location.get_events" class="py-name" href="#" onclick="return doclink('link-94', 'get_events', 'link-94');">get_events</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_api</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L173"></a><tt class="py-lineno">173</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-95" class="py-name"><a title="lastfm.geo.Location.city" class="py-name" href="#" onclick="return doclink('link-95', 'city', 'link-78');">city</a></tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L174"></a><tt class="py-lineno">174</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-96" class="py-name"><a title="lastfm.geo.Location.latitude" class="py-name" href="#" onclick="return doclink('link-96', 'latitude', 'link-14');">latitude</a></tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L175"></a><tt class="py-lineno">175</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-97" class="py-name"><a title="lastfm.geo.Location.longitude" class="py-name" href="#" onclick="return doclink('link-97', 'longitude', 'link-15');">longitude</a></tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L176"></a><tt class="py-lineno">176</tt> <tt class="py-line"> <tt class="py-name">distance</tt><tt class="py-op">)</tt> </tt>
|
|
</div><a name="L177"></a><tt class="py-lineno">177</tt> <tt class="py-line"> </tt>
|
|
<a name="L178"></a><tt class="py-lineno">178</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">cached_property</tt> </tt>
|
|
<a name="Location.events"></a><div id="Location.events-def"><a name="L179"></a><tt class="py-lineno">179</tt> <a class="py-toggle" href="#" id="Location.events-toggle" onclick="return toggle('Location.events');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="lastfm.geo.Location-class.html#events">events</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
|
</div><div id="Location.events-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Location.events-expanded"><a name="L180"></a><tt class="py-lineno">180</tt> <tt class="py-line"> <tt class="py-docstring">"""events taking place at/around the location"""</tt> </tt>
|
|
<a name="L181"></a><tt class="py-lineno">181</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-98" class="py-name"><a title="lastfm.geo.Geo.get_events
|
|
lastfm.geo.Location.get_events" class="py-name" href="#" onclick="return doclink('link-98', 'get_events', 'link-94');">get_events</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
|
|
</div><a name="L182"></a><tt class="py-lineno">182</tt> <tt class="py-line"> </tt>
|
|
<a name="L183"></a><tt class="py-lineno">183</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">staticmethod</tt> </tt>
|
|
<a name="Location._hash_func"></a><div id="Location._hash_func-def"><a name="L184"></a><tt class="py-lineno">184</tt> <a class="py-toggle" href="#" id="Location._hash_func-toggle" onclick="return toggle('Location._hash_func');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="lastfm.geo.Location-class.html#_hash_func">_hash_func</a><tt class="py-op">(</tt><tt class="py-op">*</tt><tt class="py-param">args</tt><tt class="py-op">,</tt> <tt class="py-op">**</tt><tt class="py-param">kwds</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
|
</div><div id="Location._hash_func-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Location._hash_func-expanded"><a name="L185"></a><tt class="py-lineno">185</tt> <tt class="py-line"> <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
|
|
<a name="L186"></a><tt class="py-lineno">186</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">hash</tt><tt class="py-op">(</tt><tt class="py-string">"latlong%s%s"</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt class="py-name">kwds</tt><tt class="py-op">[</tt><tt class="py-string">'latitude'</tt><tt class="py-op">]</tt><tt class="py-op">,</tt> <tt class="py-name">kwds</tt><tt class="py-op">[</tt><tt class="py-string">'longitude'</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
|
|
<a name="L187"></a><tt class="py-lineno">187</tt> <tt class="py-line"> <tt class="py-keyword">except</tt> <tt class="py-name">KeyError</tt><tt class="py-op">:</tt> </tt>
|
|
<a name="L188"></a><tt class="py-lineno">188</tt> <tt class="py-line"> <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
|
|
<a name="L189"></a><tt class="py-lineno">189</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">hash</tt><tt class="py-op">(</tt><tt class="py-string">"name%s"</tt> <tt class="py-op">%</tt> <tt class="py-name">kwds</tt><tt class="py-op">[</tt><tt class="py-string">'city'</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
|
|
<a name="L190"></a><tt class="py-lineno">190</tt> <tt class="py-line"> <tt class="py-keyword">except</tt> <tt class="py-name">KeyError</tt><tt class="py-op">:</tt> </tt>
|
|
<a name="L191"></a><tt class="py-lineno">191</tt> <tt class="py-line"> <tt class="py-keyword">raise</tt> <tt id="link-99" class="py-name"><a title="lastfm.error.InvalidParametersError" class="py-name" href="#" onclick="return doclink('link-99', 'InvalidParametersError', 'link-76');">InvalidParametersError</a></tt><tt class="py-op">(</tt><tt class="py-string">"either latitude and longitude or city has to be provided for hashing"</tt><tt class="py-op">)</tt> </tt>
|
|
</div><a name="L192"></a><tt class="py-lineno">192</tt> <tt class="py-line"> </tt>
|
|
<a name="Location.__hash__"></a><div id="Location.__hash__-def"><a name="L193"></a><tt class="py-lineno">193</tt> <a class="py-toggle" href="#" id="Location.__hash__-toggle" onclick="return toggle('Location.__hash__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="lastfm.geo.Location-class.html#__hash__">__hash__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
|
</div><div id="Location.__hash__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Location.__hash__-expanded"><a name="L194"></a><tt class="py-lineno">194</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-100" class="py-name"><a title="lastfm.geo.Location.city" class="py-name" href="#" onclick="return doclink('link-100', 'city', 'link-78');">city</a></tt><tt class="py-op">:</tt> </tt>
|
|
<a name="L195"></a><tt class="py-lineno">195</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__class__</tt><tt class="py-op">.</tt><tt id="link-101" class="py-name" targets="Static Method lastfm.album.Album._hash_func()=lastfm.album.Album-class.html#_hash_func,Static Method lastfm.artist.Artist._hash_func()=lastfm.artist.Artist-class.html#_hash_func,Static Method lastfm.event.Event._hash_func()=lastfm.event.Event-class.html#_hash_func,Static Method lastfm.geo.Country._hash_func()=lastfm.geo.Country-class.html#_hash_func,Static Method lastfm.geo.Location._hash_func()=lastfm.geo.Location-class.html#_hash_func,Static Method lastfm.group.Group._hash_func()=lastfm.group.Group-class.html#_hash_func,Static Method lastfm.playlist.Playlist._hash_func()=lastfm.playlist.Playlist-class.html#_hash_func,Static Method lastfm.shout.Shout._hash_func()=lastfm.shout.Shout-class.html#_hash_func,Static Method lastfm.tag.Tag._hash_func()=lastfm.tag.Tag-class.html#_hash_func,Static Method lastfm.track.Track._hash_func()=lastfm.track.Track-class.html#_hash_func,Static Method lastfm.user.User.Library._hash_func()=lastfm.user.User.Library-class.html#_hash_func,Static Method lastfm.user.User.Playlist._hash_func()=lastfm.user.User.Playlist-class.html#_hash_func,Static Method lastfm.user.User._hash_func()=lastfm.user.User-class.html#_hash_func,Static Method lastfm.venue.Venue._hash_func()=lastfm.venue.Venue-class.html#_hash_func,Static Method lastfm.weeklychart.WeeklyChart._hash_func()=lastfm.weeklychart.WeeklyChart-class.html#_hash_func"><a title="lastfm.album.Album._hash_func
|
|
lastfm.artist.Artist._hash_func
|
|
lastfm.event.Event._hash_func
|
|
lastfm.geo.Country._hash_func
|
|
lastfm.geo.Location._hash_func
|
|
lastfm.group.Group._hash_func
|
|
lastfm.playlist.Playlist._hash_func
|
|
lastfm.shout.Shout._hash_func
|
|
lastfm.tag.Tag._hash_func
|
|
lastfm.track.Track._hash_func
|
|
lastfm.user.User.Library._hash_func
|
|
lastfm.user.User.Playlist._hash_func
|
|
lastfm.user.User._hash_func
|
|
lastfm.venue.Venue._hash_func
|
|
lastfm.weeklychart.WeeklyChart._hash_func" class="py-name" href="#" onclick="return doclink('link-101', '_hash_func', 'link-101');">_hash_func</a></tt><tt class="py-op">(</tt> </tt>
|
|
<a name="L196"></a><tt class="py-lineno">196</tt> <tt class="py-line"> <tt id="link-102" class="py-name"><a title="lastfm.geo.Location.latitude" class="py-name" href="#" onclick="return doclink('link-102', 'latitude', 'link-14');">latitude</a></tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-103" class="py-name"><a title="lastfm.geo.Location.latitude" class="py-name" href="#" onclick="return doclink('link-103', 'latitude', 'link-14');">latitude</a></tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L197"></a><tt class="py-lineno">197</tt> <tt class="py-line"> <tt id="link-104" class="py-name"><a title="lastfm.geo.Location.longitude" class="py-name" href="#" onclick="return doclink('link-104', 'longitude', 'link-15');">longitude</a></tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-105" class="py-name"><a title="lastfm.geo.Location.longitude" class="py-name" href="#" onclick="return doclink('link-105', 'longitude', 'link-15');">longitude</a></tt><tt class="py-op">)</tt> </tt>
|
|
<a name="L198"></a><tt class="py-lineno">198</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
|
|
<a name="L199"></a><tt class="py-lineno">199</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__class__</tt><tt class="py-op">.</tt><tt id="link-106" class="py-name"><a title="lastfm.album.Album._hash_func
|
|
lastfm.artist.Artist._hash_func
|
|
lastfm.event.Event._hash_func
|
|
lastfm.geo.Country._hash_func
|
|
lastfm.geo.Location._hash_func
|
|
lastfm.group.Group._hash_func
|
|
lastfm.playlist.Playlist._hash_func
|
|
lastfm.shout.Shout._hash_func
|
|
lastfm.tag.Tag._hash_func
|
|
lastfm.track.Track._hash_func
|
|
lastfm.user.User.Library._hash_func
|
|
lastfm.user.User.Playlist._hash_func
|
|
lastfm.user.User._hash_func
|
|
lastfm.venue.Venue._hash_func
|
|
lastfm.weeklychart.WeeklyChart._hash_func" class="py-name" href="#" onclick="return doclink('link-106', '_hash_func', 'link-101');">_hash_func</a></tt><tt class="py-op">(</tt><tt id="link-107" class="py-name"><a title="lastfm.album.Album.name
|
|
lastfm.artist.Artist.name
|
|
lastfm.geo.Country.name
|
|
lastfm.group.Group.name
|
|
lastfm.tag.Tag.name
|
|
lastfm.track.Track.name
|
|
lastfm.user.User.name
|
|
lastfm.venue.Venue.name" class="py-name" href="#" onclick="return doclink('link-107', 'name', 'link-37');">name</a></tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-108" class="py-name"><a title="lastfm.geo.Location.city" class="py-name" href="#" onclick="return doclink('link-108', 'city', 'link-78');">city</a></tt><tt class="py-op">)</tt> </tt>
|
|
</div><a name="L200"></a><tt class="py-lineno">200</tt> <tt class="py-line"> </tt>
|
|
<a name="Location.__eq__"></a><div id="Location.__eq__-def"><a name="L201"></a><tt class="py-lineno">201</tt> <a class="py-toggle" href="#" id="Location.__eq__-toggle" onclick="return toggle('Location.__eq__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="lastfm.geo.Location-class.html#__eq__">__eq__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">other</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
|
</div><div id="Location.__eq__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Location.__eq__-expanded"><a name="L202"></a><tt class="py-lineno">202</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-109" class="py-name"><a title="lastfm.geo.Location.latitude" class="py-name" href="#" onclick="return doclink('link-109', 'latitude', 'link-14');">latitude</a></tt> <tt class="py-op">==</tt> <tt class="py-name">other</tt><tt class="py-op">.</tt><tt id="link-110" class="py-name"><a title="lastfm.geo.Location.latitude" class="py-name" href="#" onclick="return doclink('link-110', 'latitude', 'link-14');">latitude</a></tt> <tt class="py-keyword">and</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-111" class="py-name"><a title="lastfm.geo.Location.longitude" class="py-name" href="#" onclick="return doclink('link-111', 'longitude', 'link-15');">longitude</a></tt> <tt class="py-op">==</tt> <tt class="py-name">other</tt><tt class="py-op">.</tt><tt id="link-112" class="py-name"><a title="lastfm.geo.Location.longitude" class="py-name" href="#" onclick="return doclink('link-112', 'longitude', 'link-15');">longitude</a></tt> </tt>
|
|
</div><a name="L203"></a><tt class="py-lineno">203</tt> <tt class="py-line"> </tt>
|
|
<a name="Location.__lt__"></a><div id="Location.__lt__-def"><a name="L204"></a><tt class="py-lineno">204</tt> <a class="py-toggle" href="#" id="Location.__lt__-toggle" onclick="return toggle('Location.__lt__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="lastfm.geo.Location-class.html#__lt__">__lt__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">other</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
|
</div><div id="Location.__lt__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Location.__lt__-expanded"><a name="L205"></a><tt class="py-lineno">205</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-113" class="py-name"><a title="lastfm.geo.Location.country
|
|
lastfm.user.User.country" class="py-name" href="#" onclick="return doclink('link-113', 'country', 'link-31');">country</a></tt> <tt class="py-op">!=</tt> <tt class="py-name">other</tt><tt class="py-op">.</tt><tt id="link-114" class="py-name"><a title="lastfm.geo.Location.country
|
|
lastfm.user.User.country" class="py-name" href="#" onclick="return doclink('link-114', 'country', 'link-31');">country</a></tt><tt class="py-op">:</tt> </tt>
|
|
<a name="L206"></a><tt class="py-lineno">206</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-115" class="py-name"><a title="lastfm.geo.Location.country
|
|
lastfm.user.User.country" class="py-name" href="#" onclick="return doclink('link-115', 'country', 'link-31');">country</a></tt> <tt class="py-op"><</tt> <tt class="py-name">other</tt><tt class="py-op">.</tt><tt id="link-116" class="py-name"><a title="lastfm.geo.Location.country
|
|
lastfm.user.User.country" class="py-name" href="#" onclick="return doclink('link-116', 'country', 'link-31');">country</a></tt> </tt>
|
|
<a name="L207"></a><tt class="py-lineno">207</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
|
|
<a name="L208"></a><tt class="py-lineno">208</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-117" class="py-name"><a title="lastfm.geo.Location.city" class="py-name" href="#" onclick="return doclink('link-117', 'city', 'link-78');">city</a></tt> <tt class="py-op"><</tt> <tt class="py-name">other</tt><tt class="py-op">.</tt><tt id="link-118" class="py-name"><a title="lastfm.geo.Location.city" class="py-name" href="#" onclick="return doclink('link-118', 'city', 'link-78');">city</a></tt> </tt>
|
|
</div><a name="L209"></a><tt class="py-lineno">209</tt> <tt class="py-line"> </tt>
|
|
<a name="Location.__repr__"></a><div id="Location.__repr__-def"><a name="L210"></a><tt class="py-lineno">210</tt> <a class="py-toggle" href="#" id="Location.__repr__-toggle" onclick="return toggle('Location.__repr__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="lastfm.geo.Location-class.html#__repr__">__repr__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
|
</div><div id="Location.__repr__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Location.__repr__-expanded"><a name="L211"></a><tt class="py-lineno">211</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-119" class="py-name"><a title="lastfm.geo.Location.city" class="py-name" href="#" onclick="return doclink('link-119', 'city', 'link-78');">city</a></tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
|
|
<a name="L212"></a><tt class="py-lineno">212</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-string">"<lastfm.geo.Location: (%s, %s)>"</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-120" class="py-name"><a title="lastfm.geo.Location.latitude" class="py-name" href="#" onclick="return doclink('link-120', 'latitude', 'link-14');">latitude</a></tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-121" class="py-name"><a title="lastfm.geo.Location.longitude" class="py-name" href="#" onclick="return doclink('link-121', 'longitude', 'link-15');">longitude</a></tt><tt class="py-op">)</tt> </tt>
|
|
<a name="L213"></a><tt class="py-lineno">213</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
|
|
<a name="L214"></a><tt class="py-lineno">214</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-string">"<lastfm.geo.Location: %s>"</tt> <tt class="py-op">%</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-122" class="py-name"><a title="lastfm.geo.Location.city" class="py-name" href="#" onclick="return doclink('link-122', 'city', 'link-78');">city</a></tt> </tt>
|
|
</div></div><a name="L215"></a><tt class="py-lineno">215</tt> <tt class="py-line"> </tt>
|
|
<a name="Country"></a><div id="Country-def"><a name="L216"></a><tt class="py-lineno">216</tt> <a class="py-toggle" href="#" id="Country-toggle" onclick="return toggle('Country');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="lastfm.geo.Country-class.html">Country</a><tt class="py-op">(</tt><tt class="py-base-class">LastfmBase</tt><tt class="py-op">,</tt> <tt class="py-base-class">Cacheable</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
|
</div><div id="Country-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="Country-expanded"><a name="L217"></a><tt class="py-lineno">217</tt> <tt class="py-line"> <tt class="py-docstring">"""A class representing a country."""</tt> </tt>
|
|
<a name="L218"></a><tt class="py-lineno">218</tt> <tt class="py-line"> <tt id="link-123" class="py-name" targets="Variable lastfm.geo.Country.ISO_CODES=lastfm.geo.Country-class.html#ISO_CODES"><a title="lastfm.geo.Country.ISO_CODES" class="py-name" href="#" onclick="return doclink('link-123', 'ISO_CODES', 'link-123');">ISO_CODES</a></tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt> </tt>
|
|
<a name="L219"></a><tt class="py-lineno">219</tt> <tt class="py-line"> <tt class="py-string">'AD'</tt><tt class="py-op">:</tt> <tt class="py-string">'Andorra'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L220"></a><tt class="py-lineno">220</tt> <tt class="py-line"> <tt class="py-string">'AE'</tt><tt class="py-op">:</tt> <tt class="py-string">'United Arab Emirates'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L221"></a><tt class="py-lineno">221</tt> <tt class="py-line"> <tt class="py-string">'AF'</tt><tt class="py-op">:</tt> <tt class="py-string">'Afghanistan'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L222"></a><tt class="py-lineno">222</tt> <tt class="py-line"> <tt class="py-string">'AG'</tt><tt class="py-op">:</tt> <tt class="py-string">'Antigua and Barbuda'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L223"></a><tt class="py-lineno">223</tt> <tt class="py-line"> <tt class="py-string">'AI'</tt><tt class="py-op">:</tt> <tt class="py-string">'Anguilla'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L224"></a><tt class="py-lineno">224</tt> <tt class="py-line"> <tt class="py-string">'AL'</tt><tt class="py-op">:</tt> <tt class="py-string">'Albania'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L225"></a><tt class="py-lineno">225</tt> <tt class="py-line"> <tt class="py-string">'AM'</tt><tt class="py-op">:</tt> <tt class="py-string">'Armenia'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L226"></a><tt class="py-lineno">226</tt> <tt class="py-line"> <tt class="py-string">'AN'</tt><tt class="py-op">:</tt> <tt class="py-string">'Netherlands Antilles'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L227"></a><tt class="py-lineno">227</tt> <tt class="py-line"> <tt class="py-string">'AO'</tt><tt class="py-op">:</tt> <tt class="py-string">'Angola'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L228"></a><tt class="py-lineno">228</tt> <tt class="py-line"> <tt class="py-string">'AQ'</tt><tt class="py-op">:</tt> <tt class="py-string">'Antarctica'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L229"></a><tt class="py-lineno">229</tt> <tt class="py-line"> <tt class="py-string">'AR'</tt><tt class="py-op">:</tt> <tt class="py-string">'Argentina'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L230"></a><tt class="py-lineno">230</tt> <tt class="py-line"> <tt class="py-string">'AS'</tt><tt class="py-op">:</tt> <tt class="py-string">'American Samoa'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L231"></a><tt class="py-lineno">231</tt> <tt class="py-line"> <tt class="py-string">'AT'</tt><tt class="py-op">:</tt> <tt class="py-string">'Austria'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L232"></a><tt class="py-lineno">232</tt> <tt class="py-line"> <tt class="py-string">'AU'</tt><tt class="py-op">:</tt> <tt class="py-string">'Australia'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L233"></a><tt class="py-lineno">233</tt> <tt class="py-line"> <tt class="py-string">'AW'</tt><tt class="py-op">:</tt> <tt class="py-string">'Aruba'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L234"></a><tt class="py-lineno">234</tt> <tt class="py-line"> <tt class="py-string">'AX'</tt><tt class="py-op">:</tt> <tt class="py-string">'land Islands'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L235"></a><tt class="py-lineno">235</tt> <tt class="py-line"> <tt class="py-string">'AZ'</tt><tt class="py-op">:</tt> <tt class="py-string">'Azerbaijan'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L236"></a><tt class="py-lineno">236</tt> <tt class="py-line"> <tt class="py-string">'BA'</tt><tt class="py-op">:</tt> <tt class="py-string">'Bosnia and Herzegovina'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L237"></a><tt class="py-lineno">237</tt> <tt class="py-line"> <tt class="py-string">'BB'</tt><tt class="py-op">:</tt> <tt class="py-string">'Barbados'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L238"></a><tt class="py-lineno">238</tt> <tt class="py-line"> <tt class="py-string">'BD'</tt><tt class="py-op">:</tt> <tt class="py-string">'Bangladesh'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L239"></a><tt class="py-lineno">239</tt> <tt class="py-line"> <tt class="py-string">'BE'</tt><tt class="py-op">:</tt> <tt class="py-string">'Belgium'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L240"></a><tt class="py-lineno">240</tt> <tt class="py-line"> <tt class="py-string">'BF'</tt><tt class="py-op">:</tt> <tt class="py-string">'Burkina Faso'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L241"></a><tt class="py-lineno">241</tt> <tt class="py-line"> <tt class="py-string">'BG'</tt><tt class="py-op">:</tt> <tt class="py-string">'Bulgaria'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L242"></a><tt class="py-lineno">242</tt> <tt class="py-line"> <tt class="py-string">'BH'</tt><tt class="py-op">:</tt> <tt class="py-string">'Bahrain'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L243"></a><tt class="py-lineno">243</tt> <tt class="py-line"> <tt class="py-string">'BI'</tt><tt class="py-op">:</tt> <tt class="py-string">'Burundi'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L244"></a><tt class="py-lineno">244</tt> <tt class="py-line"> <tt class="py-string">'BJ'</tt><tt class="py-op">:</tt> <tt class="py-string">'Benin'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L245"></a><tt class="py-lineno">245</tt> <tt class="py-line"> <tt class="py-string">'BL'</tt><tt class="py-op">:</tt> <tt class="py-string">'Saint Barthlemy'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L246"></a><tt class="py-lineno">246</tt> <tt class="py-line"> <tt class="py-string">'BM'</tt><tt class="py-op">:</tt> <tt class="py-string">'Bermuda'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L247"></a><tt class="py-lineno">247</tt> <tt class="py-line"> <tt class="py-string">'BN'</tt><tt class="py-op">:</tt> <tt class="py-string">'Brunei Darussalam'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L248"></a><tt class="py-lineno">248</tt> <tt class="py-line"> <tt class="py-string">'BO'</tt><tt class="py-op">:</tt> <tt class="py-string">'Bolivia'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L249"></a><tt class="py-lineno">249</tt> <tt class="py-line"> <tt class="py-string">'BR'</tt><tt class="py-op">:</tt> <tt class="py-string">'Brazil'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L250"></a><tt class="py-lineno">250</tt> <tt class="py-line"> <tt class="py-string">'BS'</tt><tt class="py-op">:</tt> <tt class="py-string">'Bahamas'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L251"></a><tt class="py-lineno">251</tt> <tt class="py-line"> <tt class="py-string">'BT'</tt><tt class="py-op">:</tt> <tt class="py-string">'Bhutan'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L252"></a><tt class="py-lineno">252</tt> <tt class="py-line"> <tt class="py-string">'BV'</tt><tt class="py-op">:</tt> <tt class="py-string">'Bouvet Island'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L253"></a><tt class="py-lineno">253</tt> <tt class="py-line"> <tt class="py-string">'BW'</tt><tt class="py-op">:</tt> <tt class="py-string">'Botswana'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L254"></a><tt class="py-lineno">254</tt> <tt class="py-line"> <tt class="py-string">'BY'</tt><tt class="py-op">:</tt> <tt class="py-string">'Belarus'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L255"></a><tt class="py-lineno">255</tt> <tt class="py-line"> <tt class="py-string">'BZ'</tt><tt class="py-op">:</tt> <tt class="py-string">'Belize'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L256"></a><tt class="py-lineno">256</tt> <tt class="py-line"> <tt class="py-string">'CA'</tt><tt class="py-op">:</tt> <tt class="py-string">'Canada'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L257"></a><tt class="py-lineno">257</tt> <tt class="py-line"> <tt class="py-string">'CC'</tt><tt class="py-op">:</tt> <tt class="py-string">'Cocos (Keeling) Islands'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L258"></a><tt class="py-lineno">258</tt> <tt class="py-line"> <tt class="py-string">'CD'</tt><tt class="py-op">:</tt> <tt class="py-string">'Congo, The Democratic Republic of the'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L259"></a><tt class="py-lineno">259</tt> <tt class="py-line"> <tt class="py-string">'CF'</tt><tt class="py-op">:</tt> <tt class="py-string">'Central African Republic'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L260"></a><tt class="py-lineno">260</tt> <tt class="py-line"> <tt class="py-string">'CG'</tt><tt class="py-op">:</tt> <tt class="py-string">'Congo'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L261"></a><tt class="py-lineno">261</tt> <tt class="py-line"> <tt class="py-string">'CH'</tt><tt class="py-op">:</tt> <tt class="py-string">'Switzerland'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L262"></a><tt class="py-lineno">262</tt> <tt class="py-line"> <tt class="py-string">'CI'</tt><tt class="py-op">:</tt> <tt class="py-string">"Cte d'Ivoire"</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L263"></a><tt class="py-lineno">263</tt> <tt class="py-line"> <tt class="py-string">'CK'</tt><tt class="py-op">:</tt> <tt class="py-string">'Cook Islands'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L264"></a><tt class="py-lineno">264</tt> <tt class="py-line"> <tt class="py-string">'CL'</tt><tt class="py-op">:</tt> <tt class="py-string">'Chile'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L265"></a><tt class="py-lineno">265</tt> <tt class="py-line"> <tt class="py-string">'CM'</tt><tt class="py-op">:</tt> <tt class="py-string">'Cameroon'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L266"></a><tt class="py-lineno">266</tt> <tt class="py-line"> <tt class="py-string">'CN'</tt><tt class="py-op">:</tt> <tt class="py-string">'China'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L267"></a><tt class="py-lineno">267</tt> <tt class="py-line"> <tt class="py-string">'CO'</tt><tt class="py-op">:</tt> <tt class="py-string">'Colombia'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L268"></a><tt class="py-lineno">268</tt> <tt class="py-line"> <tt class="py-string">'CR'</tt><tt class="py-op">:</tt> <tt class="py-string">'Costa Rica'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L269"></a><tt class="py-lineno">269</tt> <tt class="py-line"> <tt class="py-string">'CU'</tt><tt class="py-op">:</tt> <tt class="py-string">'Cuba'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L270"></a><tt class="py-lineno">270</tt> <tt class="py-line"> <tt class="py-string">'CV'</tt><tt class="py-op">:</tt> <tt class="py-string">'Cape Verde'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L271"></a><tt class="py-lineno">271</tt> <tt class="py-line"> <tt class="py-string">'CX'</tt><tt class="py-op">:</tt> <tt class="py-string">'Christmas Island'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L272"></a><tt class="py-lineno">272</tt> <tt class="py-line"> <tt class="py-string">'CY'</tt><tt class="py-op">:</tt> <tt class="py-string">'Cyprus'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L273"></a><tt class="py-lineno">273</tt> <tt class="py-line"> <tt class="py-string">'CZ'</tt><tt class="py-op">:</tt> <tt class="py-string">'Czech Republic'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L274"></a><tt class="py-lineno">274</tt> <tt class="py-line"> <tt class="py-string">'DE'</tt><tt class="py-op">:</tt> <tt class="py-string">'Germany'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L275"></a><tt class="py-lineno">275</tt> <tt class="py-line"> <tt class="py-string">'DJ'</tt><tt class="py-op">:</tt> <tt class="py-string">'Djibouti'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L276"></a><tt class="py-lineno">276</tt> <tt class="py-line"> <tt class="py-string">'DK'</tt><tt class="py-op">:</tt> <tt class="py-string">'Denmark'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L277"></a><tt class="py-lineno">277</tt> <tt class="py-line"> <tt class="py-string">'DM'</tt><tt class="py-op">:</tt> <tt class="py-string">'Dominica'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L278"></a><tt class="py-lineno">278</tt> <tt class="py-line"> <tt class="py-string">'DO'</tt><tt class="py-op">:</tt> <tt class="py-string">'Dominican Republic'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L279"></a><tt class="py-lineno">279</tt> <tt class="py-line"> <tt class="py-string">'DZ'</tt><tt class="py-op">:</tt> <tt class="py-string">'Algeria'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L280"></a><tt class="py-lineno">280</tt> <tt class="py-line"> <tt class="py-string">'EC'</tt><tt class="py-op">:</tt> <tt class="py-string">'Ecuador'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L281"></a><tt class="py-lineno">281</tt> <tt class="py-line"> <tt class="py-string">'EE'</tt><tt class="py-op">:</tt> <tt class="py-string">'Estonia'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L282"></a><tt class="py-lineno">282</tt> <tt class="py-line"> <tt class="py-string">'EG'</tt><tt class="py-op">:</tt> <tt class="py-string">'Egypt'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L283"></a><tt class="py-lineno">283</tt> <tt class="py-line"> <tt class="py-string">'EH'</tt><tt class="py-op">:</tt> <tt class="py-string">'Western Sahara'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L284"></a><tt class="py-lineno">284</tt> <tt class="py-line"> <tt class="py-string">'ER'</tt><tt class="py-op">:</tt> <tt class="py-string">'Eritrea'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L285"></a><tt class="py-lineno">285</tt> <tt class="py-line"> <tt class="py-string">'ES'</tt><tt class="py-op">:</tt> <tt class="py-string">'Spain'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L286"></a><tt class="py-lineno">286</tt> <tt class="py-line"> <tt class="py-string">'ET'</tt><tt class="py-op">:</tt> <tt class="py-string">'Ethiopia'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L287"></a><tt class="py-lineno">287</tt> <tt class="py-line"> <tt class="py-string">'FI'</tt><tt class="py-op">:</tt> <tt class="py-string">'Finland'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L288"></a><tt class="py-lineno">288</tt> <tt class="py-line"> <tt class="py-string">'FJ'</tt><tt class="py-op">:</tt> <tt class="py-string">'Fiji'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L289"></a><tt class="py-lineno">289</tt> <tt class="py-line"> <tt class="py-string">'FK'</tt><tt class="py-op">:</tt> <tt class="py-string">'Falkland Islands (Malvinas)'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L290"></a><tt class="py-lineno">290</tt> <tt class="py-line"> <tt class="py-string">'FM'</tt><tt class="py-op">:</tt> <tt class="py-string">'Micronesia, Federated States of'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L291"></a><tt class="py-lineno">291</tt> <tt class="py-line"> <tt class="py-string">'FO'</tt><tt class="py-op">:</tt> <tt class="py-string">'Faroe Islands'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L292"></a><tt class="py-lineno">292</tt> <tt class="py-line"> <tt class="py-string">'FR'</tt><tt class="py-op">:</tt> <tt class="py-string">'France'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L293"></a><tt class="py-lineno">293</tt> <tt class="py-line"> <tt class="py-string">'GA'</tt><tt class="py-op">:</tt> <tt class="py-string">'Gabon'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L294"></a><tt class="py-lineno">294</tt> <tt class="py-line"> <tt class="py-string">'GB'</tt><tt class="py-op">:</tt> <tt class="py-string">'United Kingdom'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L295"></a><tt class="py-lineno">295</tt> <tt class="py-line"> <tt class="py-string">'GD'</tt><tt class="py-op">:</tt> <tt class="py-string">'Grenada'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L296"></a><tt class="py-lineno">296</tt> <tt class="py-line"> <tt class="py-string">'GE'</tt><tt class="py-op">:</tt> <tt class="py-string">'Georgia'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L297"></a><tt class="py-lineno">297</tt> <tt class="py-line"> <tt class="py-string">'GF'</tt><tt class="py-op">:</tt> <tt class="py-string">'French Guiana'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L298"></a><tt class="py-lineno">298</tt> <tt class="py-line"> <tt class="py-string">'GG'</tt><tt class="py-op">:</tt> <tt class="py-string">'Guernsey'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L299"></a><tt class="py-lineno">299</tt> <tt class="py-line"> <tt class="py-string">'GH'</tt><tt class="py-op">:</tt> <tt class="py-string">'Ghana'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L300"></a><tt class="py-lineno">300</tt> <tt class="py-line"> <tt class="py-string">'GI'</tt><tt class="py-op">:</tt> <tt class="py-string">'Gibraltar'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L301"></a><tt class="py-lineno">301</tt> <tt class="py-line"> <tt class="py-string">'GL'</tt><tt class="py-op">:</tt> <tt class="py-string">'Greenland'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L302"></a><tt class="py-lineno">302</tt> <tt class="py-line"> <tt class="py-string">'GM'</tt><tt class="py-op">:</tt> <tt class="py-string">'Gambia'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L303"></a><tt class="py-lineno">303</tt> <tt class="py-line"> <tt class="py-string">'GN'</tt><tt class="py-op">:</tt> <tt class="py-string">'Guinea'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L304"></a><tt class="py-lineno">304</tt> <tt class="py-line"> <tt class="py-string">'GP'</tt><tt class="py-op">:</tt> <tt class="py-string">'Guadeloupe'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L305"></a><tt class="py-lineno">305</tt> <tt class="py-line"> <tt class="py-string">'GQ'</tt><tt class="py-op">:</tt> <tt class="py-string">'Equatorial Guinea'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L306"></a><tt class="py-lineno">306</tt> <tt class="py-line"> <tt class="py-string">'GR'</tt><tt class="py-op">:</tt> <tt class="py-string">'Greece'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L307"></a><tt class="py-lineno">307</tt> <tt class="py-line"> <tt class="py-string">'GS'</tt><tt class="py-op">:</tt> <tt class="py-string">'South Georgia and the South Sandwich Islands'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L308"></a><tt class="py-lineno">308</tt> <tt class="py-line"> <tt class="py-string">'GT'</tt><tt class="py-op">:</tt> <tt class="py-string">'Guatemala'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L309"></a><tt class="py-lineno">309</tt> <tt class="py-line"> <tt class="py-string">'GU'</tt><tt class="py-op">:</tt> <tt class="py-string">'Guam'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L310"></a><tt class="py-lineno">310</tt> <tt class="py-line"> <tt class="py-string">'GW'</tt><tt class="py-op">:</tt> <tt class="py-string">'Guinea-Bissau'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L311"></a><tt class="py-lineno">311</tt> <tt class="py-line"> <tt class="py-string">'GY'</tt><tt class="py-op">:</tt> <tt class="py-string">'Guyana'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L312"></a><tt class="py-lineno">312</tt> <tt class="py-line"> <tt class="py-string">'HK'</tt><tt class="py-op">:</tt> <tt class="py-string">'Hong Kong'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L313"></a><tt class="py-lineno">313</tt> <tt class="py-line"> <tt class="py-string">'HM'</tt><tt class="py-op">:</tt> <tt class="py-string">'Heard Island and McDonald Islands'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L314"></a><tt class="py-lineno">314</tt> <tt class="py-line"> <tt class="py-string">'HN'</tt><tt class="py-op">:</tt> <tt class="py-string">'Honduras'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L315"></a><tt class="py-lineno">315</tt> <tt class="py-line"> <tt class="py-string">'HR'</tt><tt class="py-op">:</tt> <tt class="py-string">'Croatia'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L316"></a><tt class="py-lineno">316</tt> <tt class="py-line"> <tt class="py-string">'HT'</tt><tt class="py-op">:</tt> <tt class="py-string">'Haiti'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L317"></a><tt class="py-lineno">317</tt> <tt class="py-line"> <tt class="py-string">'HU'</tt><tt class="py-op">:</tt> <tt class="py-string">'Hungary'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L318"></a><tt class="py-lineno">318</tt> <tt class="py-line"> <tt class="py-string">'ID'</tt><tt class="py-op">:</tt> <tt class="py-string">'Indonesia'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L319"></a><tt class="py-lineno">319</tt> <tt class="py-line"> <tt class="py-string">'IE'</tt><tt class="py-op">:</tt> <tt class="py-string">'Ireland'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L320"></a><tt class="py-lineno">320</tt> <tt class="py-line"> <tt class="py-string">'IL'</tt><tt class="py-op">:</tt> <tt class="py-string">'Israel'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L321"></a><tt class="py-lineno">321</tt> <tt class="py-line"> <tt class="py-string">'IM'</tt><tt class="py-op">:</tt> <tt class="py-string">'Isle of Man'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L322"></a><tt class="py-lineno">322</tt> <tt class="py-line"> <tt class="py-string">'IN'</tt><tt class="py-op">:</tt> <tt class="py-string">'India'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L323"></a><tt class="py-lineno">323</tt> <tt class="py-line"> <tt class="py-string">'IO'</tt><tt class="py-op">:</tt> <tt class="py-string">'British Indian Ocean Territory'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L324"></a><tt class="py-lineno">324</tt> <tt class="py-line"> <tt class="py-string">'IQ'</tt><tt class="py-op">:</tt> <tt class="py-string">'Iraq'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L325"></a><tt class="py-lineno">325</tt> <tt class="py-line"> <tt class="py-string">'IR'</tt><tt class="py-op">:</tt> <tt class="py-string">'Iran, Islamic Republic of'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L326"></a><tt class="py-lineno">326</tt> <tt class="py-line"> <tt class="py-string">'IS'</tt><tt class="py-op">:</tt> <tt class="py-string">'Iceland'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L327"></a><tt class="py-lineno">327</tt> <tt class="py-line"> <tt class="py-string">'IT'</tt><tt class="py-op">:</tt> <tt class="py-string">'Italy'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L328"></a><tt class="py-lineno">328</tt> <tt class="py-line"> <tt class="py-string">'JE'</tt><tt class="py-op">:</tt> <tt class="py-string">'Jersey'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L329"></a><tt class="py-lineno">329</tt> <tt class="py-line"> <tt class="py-string">'JM'</tt><tt class="py-op">:</tt> <tt class="py-string">'Jamaica'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L330"></a><tt class="py-lineno">330</tt> <tt class="py-line"> <tt class="py-string">'JO'</tt><tt class="py-op">:</tt> <tt class="py-string">'Jordan'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L331"></a><tt class="py-lineno">331</tt> <tt class="py-line"> <tt class="py-string">'JP'</tt><tt class="py-op">:</tt> <tt class="py-string">'Japan'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L332"></a><tt class="py-lineno">332</tt> <tt class="py-line"> <tt class="py-string">'KE'</tt><tt class="py-op">:</tt> <tt class="py-string">'Kenya'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L333"></a><tt class="py-lineno">333</tt> <tt class="py-line"> <tt class="py-string">'KG'</tt><tt class="py-op">:</tt> <tt class="py-string">'Kyrgyzstan'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L334"></a><tt class="py-lineno">334</tt> <tt class="py-line"> <tt class="py-string">'KH'</tt><tt class="py-op">:</tt> <tt class="py-string">'Cambodia'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L335"></a><tt class="py-lineno">335</tt> <tt class="py-line"> <tt class="py-string">'KI'</tt><tt class="py-op">:</tt> <tt class="py-string">'Kiribati'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L336"></a><tt class="py-lineno">336</tt> <tt class="py-line"> <tt class="py-string">'KM'</tt><tt class="py-op">:</tt> <tt class="py-string">'Comoros'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L337"></a><tt class="py-lineno">337</tt> <tt class="py-line"> <tt class="py-string">'KN'</tt><tt class="py-op">:</tt> <tt class="py-string">'Saint Kitts and Nevis'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L338"></a><tt class="py-lineno">338</tt> <tt class="py-line"> <tt class="py-string">'KP'</tt><tt class="py-op">:</tt> <tt class="py-string">"Korea, Democratic People's Republic of"</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L339"></a><tt class="py-lineno">339</tt> <tt class="py-line"> <tt class="py-string">'KR'</tt><tt class="py-op">:</tt> <tt class="py-string">'Korea, Republic of'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L340"></a><tt class="py-lineno">340</tt> <tt class="py-line"> <tt class="py-string">'KW'</tt><tt class="py-op">:</tt> <tt class="py-string">'Kuwait'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L341"></a><tt class="py-lineno">341</tt> <tt class="py-line"> <tt class="py-string">'KY'</tt><tt class="py-op">:</tt> <tt class="py-string">'Cayman Islands'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L342"></a><tt class="py-lineno">342</tt> <tt class="py-line"> <tt class="py-string">'KZ'</tt><tt class="py-op">:</tt> <tt class="py-string">'Kazakhstan'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L343"></a><tt class="py-lineno">343</tt> <tt class="py-line"> <tt class="py-string">'LA'</tt><tt class="py-op">:</tt> <tt class="py-string">"Lao People's Democratic Republic"</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L344"></a><tt class="py-lineno">344</tt> <tt class="py-line"> <tt class="py-string">'LB'</tt><tt class="py-op">:</tt> <tt class="py-string">'Lebanon'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L345"></a><tt class="py-lineno">345</tt> <tt class="py-line"> <tt class="py-string">'LC'</tt><tt class="py-op">:</tt> <tt class="py-string">'Saint Lucia'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L346"></a><tt class="py-lineno">346</tt> <tt class="py-line"> <tt class="py-string">'LI'</tt><tt class="py-op">:</tt> <tt class="py-string">'Liechtenstein'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L347"></a><tt class="py-lineno">347</tt> <tt class="py-line"> <tt class="py-string">'LK'</tt><tt class="py-op">:</tt> <tt class="py-string">'Sri Lanka'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L348"></a><tt class="py-lineno">348</tt> <tt class="py-line"> <tt class="py-string">'LR'</tt><tt class="py-op">:</tt> <tt class="py-string">'Liberia'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L349"></a><tt class="py-lineno">349</tt> <tt class="py-line"> <tt class="py-string">'LS'</tt><tt class="py-op">:</tt> <tt class="py-string">'Lesotho'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L350"></a><tt class="py-lineno">350</tt> <tt class="py-line"> <tt class="py-string">'LT'</tt><tt class="py-op">:</tt> <tt class="py-string">'Lithuania'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L351"></a><tt class="py-lineno">351</tt> <tt class="py-line"> <tt class="py-string">'LU'</tt><tt class="py-op">:</tt> <tt class="py-string">'Luxembourg'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L352"></a><tt class="py-lineno">352</tt> <tt class="py-line"> <tt class="py-string">'LV'</tt><tt class="py-op">:</tt> <tt class="py-string">'Latvia'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L353"></a><tt class="py-lineno">353</tt> <tt class="py-line"> <tt class="py-string">'LY'</tt><tt class="py-op">:</tt> <tt class="py-string">'Libyan Arab Jamahiriya'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L354"></a><tt class="py-lineno">354</tt> <tt class="py-line"> <tt class="py-string">'MA'</tt><tt class="py-op">:</tt> <tt class="py-string">'Morocco'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L355"></a><tt class="py-lineno">355</tt> <tt class="py-line"> <tt class="py-string">'MC'</tt><tt class="py-op">:</tt> <tt class="py-string">'Monaco'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L356"></a><tt class="py-lineno">356</tt> <tt class="py-line"> <tt class="py-string">'MD'</tt><tt class="py-op">:</tt> <tt class="py-string">'Moldova'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L357"></a><tt class="py-lineno">357</tt> <tt class="py-line"> <tt class="py-string">'ME'</tt><tt class="py-op">:</tt> <tt class="py-string">'Montenegro'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L358"></a><tt class="py-lineno">358</tt> <tt class="py-line"> <tt class="py-string">'MF'</tt><tt class="py-op">:</tt> <tt class="py-string">'Saint Martin'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L359"></a><tt class="py-lineno">359</tt> <tt class="py-line"> <tt class="py-string">'MG'</tt><tt class="py-op">:</tt> <tt class="py-string">'Madagascar'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L360"></a><tt class="py-lineno">360</tt> <tt class="py-line"> <tt class="py-string">'MH'</tt><tt class="py-op">:</tt> <tt class="py-string">'Marshall Islands'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L361"></a><tt class="py-lineno">361</tt> <tt class="py-line"> <tt class="py-string">'MK'</tt><tt class="py-op">:</tt> <tt class="py-string">'Macedonia, The Former Yugoslav Republic of'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L362"></a><tt class="py-lineno">362</tt> <tt class="py-line"> <tt class="py-string">'ML'</tt><tt class="py-op">:</tt> <tt class="py-string">'Mali'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L363"></a><tt class="py-lineno">363</tt> <tt class="py-line"> <tt class="py-string">'MM'</tt><tt class="py-op">:</tt> <tt class="py-string">'Myanmar'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L364"></a><tt class="py-lineno">364</tt> <tt class="py-line"> <tt class="py-string">'MN'</tt><tt class="py-op">:</tt> <tt class="py-string">'Mongolia'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L365"></a><tt class="py-lineno">365</tt> <tt class="py-line"> <tt class="py-string">'MO'</tt><tt class="py-op">:</tt> <tt class="py-string">'Macao'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L366"></a><tt class="py-lineno">366</tt> <tt class="py-line"> <tt class="py-string">'MP'</tt><tt class="py-op">:</tt> <tt class="py-string">'Northern Mariana Islands'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L367"></a><tt class="py-lineno">367</tt> <tt class="py-line"> <tt class="py-string">'MQ'</tt><tt class="py-op">:</tt> <tt class="py-string">'Martinique'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L368"></a><tt class="py-lineno">368</tt> <tt class="py-line"> <tt class="py-string">'MR'</tt><tt class="py-op">:</tt> <tt class="py-string">'Mauritania'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L369"></a><tt class="py-lineno">369</tt> <tt class="py-line"> <tt class="py-string">'MS'</tt><tt class="py-op">:</tt> <tt class="py-string">'Montserrat'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L370"></a><tt class="py-lineno">370</tt> <tt class="py-line"> <tt class="py-string">'MT'</tt><tt class="py-op">:</tt> <tt class="py-string">'Malta'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L371"></a><tt class="py-lineno">371</tt> <tt class="py-line"> <tt class="py-string">'MU'</tt><tt class="py-op">:</tt> <tt class="py-string">'Mauritius'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L372"></a><tt class="py-lineno">372</tt> <tt class="py-line"> <tt class="py-string">'MV'</tt><tt class="py-op">:</tt> <tt class="py-string">'Maldives'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L373"></a><tt class="py-lineno">373</tt> <tt class="py-line"> <tt class="py-string">'MW'</tt><tt class="py-op">:</tt> <tt class="py-string">'Malawi'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L374"></a><tt class="py-lineno">374</tt> <tt class="py-line"> <tt class="py-string">'MX'</tt><tt class="py-op">:</tt> <tt class="py-string">'Mexico'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L375"></a><tt class="py-lineno">375</tt> <tt class="py-line"> <tt class="py-string">'MY'</tt><tt class="py-op">:</tt> <tt class="py-string">'Malaysia'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L376"></a><tt class="py-lineno">376</tt> <tt class="py-line"> <tt class="py-string">'MZ'</tt><tt class="py-op">:</tt> <tt class="py-string">'Mozambique'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L377"></a><tt class="py-lineno">377</tt> <tt class="py-line"> <tt class="py-string">'NA'</tt><tt class="py-op">:</tt> <tt class="py-string">'Namibia'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L378"></a><tt class="py-lineno">378</tt> <tt class="py-line"> <tt class="py-string">'NC'</tt><tt class="py-op">:</tt> <tt class="py-string">'New Caledonia'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L379"></a><tt class="py-lineno">379</tt> <tt class="py-line"> <tt class="py-string">'NE'</tt><tt class="py-op">:</tt> <tt class="py-string">'Niger'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L380"></a><tt class="py-lineno">380</tt> <tt class="py-line"> <tt class="py-string">'NF'</tt><tt class="py-op">:</tt> <tt class="py-string">'Norfolk Island'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L381"></a><tt class="py-lineno">381</tt> <tt class="py-line"> <tt class="py-string">'NG'</tt><tt class="py-op">:</tt> <tt class="py-string">'Nigeria'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L382"></a><tt class="py-lineno">382</tt> <tt class="py-line"> <tt class="py-string">'NI'</tt><tt class="py-op">:</tt> <tt class="py-string">'Nicaragua'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L383"></a><tt class="py-lineno">383</tt> <tt class="py-line"> <tt class="py-string">'NL'</tt><tt class="py-op">:</tt> <tt class="py-string">'Netherlands'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L384"></a><tt class="py-lineno">384</tt> <tt class="py-line"> <tt class="py-string">'NO'</tt><tt class="py-op">:</tt> <tt class="py-string">'Norway'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L385"></a><tt class="py-lineno">385</tt> <tt class="py-line"> <tt class="py-string">'NP'</tt><tt class="py-op">:</tt> <tt class="py-string">'Nepal'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L386"></a><tt class="py-lineno">386</tt> <tt class="py-line"> <tt class="py-string">'NR'</tt><tt class="py-op">:</tt> <tt class="py-string">'Nauru'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L387"></a><tt class="py-lineno">387</tt> <tt class="py-line"> <tt class="py-string">'NU'</tt><tt class="py-op">:</tt> <tt class="py-string">'Niue'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L388"></a><tt class="py-lineno">388</tt> <tt class="py-line"> <tt class="py-string">'NZ'</tt><tt class="py-op">:</tt> <tt class="py-string">'New Zealand'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L389"></a><tt class="py-lineno">389</tt> <tt class="py-line"> <tt class="py-string">'OM'</tt><tt class="py-op">:</tt> <tt class="py-string">'Oman'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L390"></a><tt class="py-lineno">390</tt> <tt class="py-line"> <tt class="py-string">'PA'</tt><tt class="py-op">:</tt> <tt class="py-string">'Panama'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L391"></a><tt class="py-lineno">391</tt> <tt class="py-line"> <tt class="py-string">'PE'</tt><tt class="py-op">:</tt> <tt class="py-string">'Peru'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L392"></a><tt class="py-lineno">392</tt> <tt class="py-line"> <tt class="py-string">'PF'</tt><tt class="py-op">:</tt> <tt class="py-string">'French Polynesia'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L393"></a><tt class="py-lineno">393</tt> <tt class="py-line"> <tt class="py-string">'PG'</tt><tt class="py-op">:</tt> <tt class="py-string">'Papua New Guinea'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L394"></a><tt class="py-lineno">394</tt> <tt class="py-line"> <tt class="py-string">'PH'</tt><tt class="py-op">:</tt> <tt class="py-string">'Philippines'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L395"></a><tt class="py-lineno">395</tt> <tt class="py-line"> <tt class="py-string">'PK'</tt><tt class="py-op">:</tt> <tt class="py-string">'Pakistan'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L396"></a><tt class="py-lineno">396</tt> <tt class="py-line"> <tt class="py-string">'PL'</tt><tt class="py-op">:</tt> <tt class="py-string">'Poland'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L397"></a><tt class="py-lineno">397</tt> <tt class="py-line"> <tt class="py-string">'PM'</tt><tt class="py-op">:</tt> <tt class="py-string">'Saint Pierre and Miquelon'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L398"></a><tt class="py-lineno">398</tt> <tt class="py-line"> <tt class="py-string">'PN'</tt><tt class="py-op">:</tt> <tt class="py-string">'Pitcairn'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L399"></a><tt class="py-lineno">399</tt> <tt class="py-line"> <tt class="py-string">'PR'</tt><tt class="py-op">:</tt> <tt class="py-string">'Puerto Rico'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L400"></a><tt class="py-lineno">400</tt> <tt class="py-line"> <tt class="py-string">'PS'</tt><tt class="py-op">:</tt> <tt class="py-string">'Palestinian Territory, Occupied'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L401"></a><tt class="py-lineno">401</tt> <tt class="py-line"> <tt class="py-string">'PT'</tt><tt class="py-op">:</tt> <tt class="py-string">'Portugal'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L402"></a><tt class="py-lineno">402</tt> <tt class="py-line"> <tt class="py-string">'PW'</tt><tt class="py-op">:</tt> <tt class="py-string">'Palau'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L403"></a><tt class="py-lineno">403</tt> <tt class="py-line"> <tt class="py-string">'PY'</tt><tt class="py-op">:</tt> <tt class="py-string">'Paraguay'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L404"></a><tt class="py-lineno">404</tt> <tt class="py-line"> <tt class="py-string">'QA'</tt><tt class="py-op">:</tt> <tt class="py-string">'Qatar'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L405"></a><tt class="py-lineno">405</tt> <tt class="py-line"> <tt class="py-string">'RE'</tt><tt class="py-op">:</tt> <tt class="py-string">'Runion'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L406"></a><tt class="py-lineno">406</tt> <tt class="py-line"> <tt class="py-string">'RO'</tt><tt class="py-op">:</tt> <tt class="py-string">'Romania'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L407"></a><tt class="py-lineno">407</tt> <tt class="py-line"> <tt class="py-string">'RS'</tt><tt class="py-op">:</tt> <tt class="py-string">'Serbia'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L408"></a><tt class="py-lineno">408</tt> <tt class="py-line"> <tt class="py-string">'RU'</tt><tt class="py-op">:</tt> <tt class="py-string">'Russian Federation'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L409"></a><tt class="py-lineno">409</tt> <tt class="py-line"> <tt class="py-string">'RW'</tt><tt class="py-op">:</tt> <tt class="py-string">'Rwanda'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L410"></a><tt class="py-lineno">410</tt> <tt class="py-line"> <tt class="py-string">'SA'</tt><tt class="py-op">:</tt> <tt class="py-string">'Saudi Arabia'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L411"></a><tt class="py-lineno">411</tt> <tt class="py-line"> <tt class="py-string">'SB'</tt><tt class="py-op">:</tt> <tt class="py-string">'Solomon Islands'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L412"></a><tt class="py-lineno">412</tt> <tt class="py-line"> <tt class="py-string">'SC'</tt><tt class="py-op">:</tt> <tt class="py-string">'Seychelles'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L413"></a><tt class="py-lineno">413</tt> <tt class="py-line"> <tt class="py-string">'SD'</tt><tt class="py-op">:</tt> <tt class="py-string">'Sudan'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L414"></a><tt class="py-lineno">414</tt> <tt class="py-line"> <tt class="py-string">'SE'</tt><tt class="py-op">:</tt> <tt class="py-string">'Sweden'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L415"></a><tt class="py-lineno">415</tt> <tt class="py-line"> <tt class="py-string">'SG'</tt><tt class="py-op">:</tt> <tt class="py-string">'Singapore'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L416"></a><tt class="py-lineno">416</tt> <tt class="py-line"> <tt class="py-string">'SH'</tt><tt class="py-op">:</tt> <tt class="py-string">'Saint Helena'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L417"></a><tt class="py-lineno">417</tt> <tt class="py-line"> <tt class="py-string">'SI'</tt><tt class="py-op">:</tt> <tt class="py-string">'Slovenia'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L418"></a><tt class="py-lineno">418</tt> <tt class="py-line"> <tt class="py-string">'SJ'</tt><tt class="py-op">:</tt> <tt class="py-string">'Svalbard and Jan Mayen'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L419"></a><tt class="py-lineno">419</tt> <tt class="py-line"> <tt class="py-string">'SK'</tt><tt class="py-op">:</tt> <tt class="py-string">'Slovakia'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L420"></a><tt class="py-lineno">420</tt> <tt class="py-line"> <tt class="py-string">'SL'</tt><tt class="py-op">:</tt> <tt class="py-string">'Sierra Leone'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L421"></a><tt class="py-lineno">421</tt> <tt class="py-line"> <tt class="py-string">'SM'</tt><tt class="py-op">:</tt> <tt class="py-string">'San Marino'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L422"></a><tt class="py-lineno">422</tt> <tt class="py-line"> <tt class="py-string">'SN'</tt><tt class="py-op">:</tt> <tt class="py-string">'Senegal'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L423"></a><tt class="py-lineno">423</tt> <tt class="py-line"> <tt class="py-string">'SO'</tt><tt class="py-op">:</tt> <tt class="py-string">'Somalia'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L424"></a><tt class="py-lineno">424</tt> <tt class="py-line"> <tt class="py-string">'SR'</tt><tt class="py-op">:</tt> <tt class="py-string">'Suriname'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L425"></a><tt class="py-lineno">425</tt> <tt class="py-line"> <tt class="py-string">'ST'</tt><tt class="py-op">:</tt> <tt class="py-string">'Sao Tome and Principe'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L426"></a><tt class="py-lineno">426</tt> <tt class="py-line"> <tt class="py-string">'SV'</tt><tt class="py-op">:</tt> <tt class="py-string">'El Salvador'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L427"></a><tt class="py-lineno">427</tt> <tt class="py-line"> <tt class="py-string">'SY'</tt><tt class="py-op">:</tt> <tt class="py-string">'Syrian Arab Republic'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L428"></a><tt class="py-lineno">428</tt> <tt class="py-line"> <tt class="py-string">'SZ'</tt><tt class="py-op">:</tt> <tt class="py-string">'Swaziland'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L429"></a><tt class="py-lineno">429</tt> <tt class="py-line"> <tt class="py-string">'TC'</tt><tt class="py-op">:</tt> <tt class="py-string">'Turks and Caicos Islands'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L430"></a><tt class="py-lineno">430</tt> <tt class="py-line"> <tt class="py-string">'TD'</tt><tt class="py-op">:</tt> <tt class="py-string">'Chad'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L431"></a><tt class="py-lineno">431</tt> <tt class="py-line"> <tt class="py-string">'TF'</tt><tt class="py-op">:</tt> <tt class="py-string">'French Southern Territories'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L432"></a><tt class="py-lineno">432</tt> <tt class="py-line"> <tt class="py-string">'TG'</tt><tt class="py-op">:</tt> <tt class="py-string">'Togo'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L433"></a><tt class="py-lineno">433</tt> <tt class="py-line"> <tt class="py-string">'TH'</tt><tt class="py-op">:</tt> <tt class="py-string">'Thailand'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L434"></a><tt class="py-lineno">434</tt> <tt class="py-line"> <tt class="py-string">'TJ'</tt><tt class="py-op">:</tt> <tt class="py-string">'Tajikistan'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L435"></a><tt class="py-lineno">435</tt> <tt class="py-line"> <tt class="py-string">'TK'</tt><tt class="py-op">:</tt> <tt class="py-string">'Tokelau'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L436"></a><tt class="py-lineno">436</tt> <tt class="py-line"> <tt class="py-string">'TL'</tt><tt class="py-op">:</tt> <tt class="py-string">'Timor-Leste'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L437"></a><tt class="py-lineno">437</tt> <tt class="py-line"> <tt class="py-string">'TM'</tt><tt class="py-op">:</tt> <tt class="py-string">'Turkmenistan'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L438"></a><tt class="py-lineno">438</tt> <tt class="py-line"> <tt class="py-string">'TN'</tt><tt class="py-op">:</tt> <tt class="py-string">'Tunisia'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L439"></a><tt class="py-lineno">439</tt> <tt class="py-line"> <tt class="py-string">'TO'</tt><tt class="py-op">:</tt> <tt class="py-string">'Tonga'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L440"></a><tt class="py-lineno">440</tt> <tt class="py-line"> <tt class="py-string">'TR'</tt><tt class="py-op">:</tt> <tt class="py-string">'Turkey'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L441"></a><tt class="py-lineno">441</tt> <tt class="py-line"> <tt class="py-string">'TT'</tt><tt class="py-op">:</tt> <tt class="py-string">'Trinidad and Tobago'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L442"></a><tt class="py-lineno">442</tt> <tt class="py-line"> <tt class="py-string">'TV'</tt><tt class="py-op">:</tt> <tt class="py-string">'Tuvalu'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L443"></a><tt class="py-lineno">443</tt> <tt class="py-line"> <tt class="py-string">'TW'</tt><tt class="py-op">:</tt> <tt class="py-string">'Taiwan, Province of China'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L444"></a><tt class="py-lineno">444</tt> <tt class="py-line"> <tt class="py-string">'TZ'</tt><tt class="py-op">:</tt> <tt class="py-string">'Tanzania, United Republic of'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L445"></a><tt class="py-lineno">445</tt> <tt class="py-line"> <tt class="py-string">'UA'</tt><tt class="py-op">:</tt> <tt class="py-string">'Ukraine'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L446"></a><tt class="py-lineno">446</tt> <tt class="py-line"> <tt class="py-string">'UG'</tt><tt class="py-op">:</tt> <tt class="py-string">'Uganda'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L447"></a><tt class="py-lineno">447</tt> <tt class="py-line"> <tt class="py-string">'UM'</tt><tt class="py-op">:</tt> <tt class="py-string">'United States Minor Outlying Islands'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L448"></a><tt class="py-lineno">448</tt> <tt class="py-line"> <tt class="py-string">'US'</tt><tt class="py-op">:</tt> <tt class="py-string">'United States'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L449"></a><tt class="py-lineno">449</tt> <tt class="py-line"> <tt class="py-string">'UY'</tt><tt class="py-op">:</tt> <tt class="py-string">'Uruguay'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L450"></a><tt class="py-lineno">450</tt> <tt class="py-line"> <tt class="py-string">'UZ'</tt><tt class="py-op">:</tt> <tt class="py-string">'Uzbekistan'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L451"></a><tt class="py-lineno">451</tt> <tt class="py-line"> <tt class="py-string">'VA'</tt><tt class="py-op">:</tt> <tt class="py-string">'Holy See (Vatican City State)'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L452"></a><tt class="py-lineno">452</tt> <tt class="py-line"> <tt class="py-string">'VC'</tt><tt class="py-op">:</tt> <tt class="py-string">'Saint Vincent and the Grenadines'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L453"></a><tt class="py-lineno">453</tt> <tt class="py-line"> <tt class="py-string">'VE'</tt><tt class="py-op">:</tt> <tt class="py-string">'Venezuela'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L454"></a><tt class="py-lineno">454</tt> <tt class="py-line"> <tt class="py-string">'VG'</tt><tt class="py-op">:</tt> <tt class="py-string">'Virgin Islands, British'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L455"></a><tt class="py-lineno">455</tt> <tt class="py-line"> <tt class="py-string">'VI'</tt><tt class="py-op">:</tt> <tt class="py-string">'Virgin Islands, U.S.'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L456"></a><tt class="py-lineno">456</tt> <tt class="py-line"> <tt class="py-string">'VN'</tt><tt class="py-op">:</tt> <tt class="py-string">'Viet Nam'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L457"></a><tt class="py-lineno">457</tt> <tt class="py-line"> <tt class="py-string">'VU'</tt><tt class="py-op">:</tt> <tt class="py-string">'Vanuatu'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L458"></a><tt class="py-lineno">458</tt> <tt class="py-line"> <tt class="py-string">'WF'</tt><tt class="py-op">:</tt> <tt class="py-string">'Wallis and Futuna'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L459"></a><tt class="py-lineno">459</tt> <tt class="py-line"> <tt class="py-string">'WS'</tt><tt class="py-op">:</tt> <tt class="py-string">'Samoa'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L460"></a><tt class="py-lineno">460</tt> <tt class="py-line"> <tt class="py-string">'YE'</tt><tt class="py-op">:</tt> <tt class="py-string">'Yemen'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L461"></a><tt class="py-lineno">461</tt> <tt class="py-line"> <tt class="py-string">'YT'</tt><tt class="py-op">:</tt> <tt class="py-string">'Mayotte'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L462"></a><tt class="py-lineno">462</tt> <tt class="py-line"> <tt class="py-string">'ZA'</tt><tt class="py-op">:</tt> <tt class="py-string">'South Africa'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L463"></a><tt class="py-lineno">463</tt> <tt class="py-line"> <tt class="py-string">'ZM'</tt><tt class="py-op">:</tt> <tt class="py-string">'Zambia'</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L464"></a><tt class="py-lineno">464</tt> <tt class="py-line"> <tt class="py-string">'ZW'</tt><tt class="py-op">:</tt> <tt class="py-string">'Zimbabwe'</tt><tt class="py-op">}</tt> </tt>
|
|
<a name="Country.init"></a><div id="Country.init-def"><a name="L465"></a><tt class="py-lineno">465</tt> <a class="py-toggle" href="#" id="Country.init-toggle" onclick="return toggle('Country.init');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="lastfm.geo.Country-class.html#init">init</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L466"></a><tt class="py-lineno">466</tt> <tt class="py-line"> <tt class="py-param">api</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L467"></a><tt class="py-lineno">467</tt> <tt class="py-line"> <tt class="py-param">name</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt><tt class="py-op">,</tt> </tt>
|
|
<a name="L468"></a><tt class="py-lineno">468</tt> <tt class="py-line"> <tt class="py-op">**</tt><tt class="py-param">kwargs</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
|
</div><div id="Country.init-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Country.init-expanded"><a name="L469"></a><tt class="py-lineno">469</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">isinstance</tt><tt class="py-op">(</tt><tt id="link-124" class="py-name"><a title="lastfm.api" class="py-name" href="#" onclick="return doclink('link-124', 'api', 'link-19');">api</a></tt><tt class="py-op">,</tt> <tt id="link-125" class="py-name"><a title="lastfm.api.Api" class="py-name" href="#" onclick="return doclink('link-125', 'Api', 'link-75');">Api</a></tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
|
<a name="L470"></a><tt class="py-lineno">470</tt> <tt class="py-line"> <tt class="py-keyword">raise</tt> <tt id="link-126" class="py-name"><a title="lastfm.error.InvalidParametersError" class="py-name" href="#" onclick="return doclink('link-126', 'InvalidParametersError', 'link-76');">InvalidParametersError</a></tt><tt class="py-op">(</tt><tt class="py-string">"api reference must be supplied as an argument"</tt><tt class="py-op">)</tt> </tt>
|
|
<a name="L471"></a><tt class="py-lineno">471</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_api</tt> <tt class="py-op">=</tt> <tt id="link-127" class="py-name"><a title="lastfm.api" class="py-name" href="#" onclick="return doclink('link-127', 'api', 'link-19');">api</a></tt> </tt>
|
|
<a name="L472"></a><tt class="py-lineno">472</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_name</tt> <tt class="py-op">=</tt> <tt id="link-128" class="py-name"><a title="lastfm.album.Album.name
|
|
lastfm.artist.Artist.name
|
|
lastfm.geo.Country.name
|
|
lastfm.group.Group.name
|
|
lastfm.tag.Tag.name
|
|
lastfm.track.Track.name
|
|
lastfm.user.User.name
|
|
lastfm.venue.Venue.name" class="py-name" href="#" onclick="return doclink('link-128', 'name', 'link-37');">name</a></tt> </tt>
|
|
</div><a name="L473"></a><tt class="py-lineno">473</tt> <tt class="py-line"> </tt>
|
|
<a name="L474"></a><tt class="py-lineno">474</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">property</tt> </tt>
|
|
<a name="Country.name"></a><div id="Country.name-def"><a name="L475"></a><tt class="py-lineno">475</tt> <a class="py-toggle" href="#" id="Country.name-toggle" onclick="return toggle('Country.name');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="lastfm.geo.Country-class.html#name">name</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
|
</div><div id="Country.name-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Country.name-expanded"><a name="L476"></a><tt class="py-lineno">476</tt> <tt class="py-line"> <tt class="py-docstring">"""name of the country"""</tt> </tt>
|
|
<a name="L477"></a><tt class="py-lineno">477</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_name</tt> </tt>
|
|
</div><a name="L478"></a><tt class="py-lineno">478</tt> <tt class="py-line"> </tt>
|
|
<a name="L479"></a><tt class="py-lineno">479</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">cached_property</tt> </tt>
|
|
<a name="Country.top_artists"></a><div id="Country.top_artists-def"><a name="L480"></a><tt class="py-lineno">480</tt> <a class="py-toggle" href="#" id="Country.top_artists-toggle" onclick="return toggle('Country.top_artists');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="lastfm.geo.Country-class.html#top_artists">top_artists</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
|
</div><div id="Country.top_artists-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Country.top_artists-expanded"><a name="L481"></a><tt class="py-lineno">481</tt> <tt class="py-line"> <tt class="py-docstring">"""top artists of the country"""</tt> </tt>
|
|
<a name="L482"></a><tt class="py-lineno">482</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-129" class="py-name"><a title="lastfm.geo.Geo" class="py-name" href="#" onclick="return doclink('link-129', 'Geo', 'link-88');">Geo</a></tt><tt class="py-op">.</tt><tt id="link-130" class="py-name" targets="Static Method lastfm.geo.Geo.get_top_artists()=lastfm.geo.Geo-class.html#get_top_artists,Method lastfm.user.User.get_top_artists()=lastfm.user.User-class.html#get_top_artists"><a title="lastfm.geo.Geo.get_top_artists
|
|
lastfm.user.User.get_top_artists" class="py-name" href="#" onclick="return doclink('link-130', 'get_top_artists', 'link-130');">get_top_artists</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_api</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-131" class="py-name"><a title="lastfm.album.Album.name
|
|
lastfm.artist.Artist.name
|
|
lastfm.geo.Country.name
|
|
lastfm.group.Group.name
|
|
lastfm.tag.Tag.name
|
|
lastfm.track.Track.name
|
|
lastfm.user.User.name
|
|
lastfm.venue.Venue.name" class="py-name" href="#" onclick="return doclink('link-131', 'name', 'link-37');">name</a></tt><tt class="py-op">)</tt> </tt>
|
|
</div><a name="L483"></a><tt class="py-lineno">483</tt> <tt class="py-line"> </tt>
|
|
<a name="L484"></a><tt class="py-lineno">484</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">top_property</tt><tt class="py-op">(</tt><tt class="py-string">"top_artists"</tt><tt class="py-op">)</tt> </tt>
|
|
<a name="Country.top_artist"></a><div id="Country.top_artist-def"><a name="L485"></a><tt class="py-lineno">485</tt> <a class="py-toggle" href="#" id="Country.top_artist-toggle" onclick="return toggle('Country.top_artist');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="lastfm.geo.Country-class.html#top_artist">top_artist</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
|
</div><div id="Country.top_artist-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Country.top_artist-expanded"><a name="L486"></a><tt class="py-lineno">486</tt> <tt class="py-line"> <tt class="py-docstring">"""top artist of the country"""</tt> </tt>
|
|
<a name="L487"></a><tt class="py-lineno">487</tt> <tt class="py-line"> <tt class="py-keyword">pass</tt> </tt>
|
|
</div><a name="L488"></a><tt class="py-lineno">488</tt> <tt class="py-line"> </tt>
|
|
<a name="Country.get_top_tracks"></a><div id="Country.get_top_tracks-def"><a name="L489"></a><tt class="py-lineno">489</tt> <a class="py-toggle" href="#" id="Country.get_top_tracks-toggle" onclick="return toggle('Country.get_top_tracks');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="lastfm.geo.Country-class.html#get_top_tracks">get_top_tracks</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">location</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
|
</div><div id="Country.get_top_tracks-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Country.get_top_tracks-expanded"><a name="L490"></a><tt class="py-lineno">490</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-132" class="py-name"><a title="lastfm.geo.Geo" class="py-name" href="#" onclick="return doclink('link-132', 'Geo', 'link-88');">Geo</a></tt><tt class="py-op">.</tt><tt id="link-133" class="py-name"><a title="lastfm.geo.Country.get_top_tracks
|
|
lastfm.geo.Geo.get_top_tracks
|
|
lastfm.user.User.get_top_tracks" class="py-name" href="#" onclick="return doclink('link-133', 'get_top_tracks', 'link-89');">get_top_tracks</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_api</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-134" class="py-name"><a title="lastfm.album.Album.name
|
|
lastfm.artist.Artist.name
|
|
lastfm.geo.Country.name
|
|
lastfm.group.Group.name
|
|
lastfm.tag.Tag.name
|
|
lastfm.track.Track.name
|
|
lastfm.user.User.name
|
|
lastfm.venue.Venue.name" class="py-name" href="#" onclick="return doclink('link-134', 'name', 'link-37');">name</a></tt><tt class="py-op">,</tt> <tt id="link-135" class="py-name"><a title="lastfm.venue.Venue.location" class="py-name" href="#" onclick="return doclink('link-135', 'location', 'link-13');">location</a></tt><tt class="py-op">)</tt> </tt>
|
|
</div><a name="L491"></a><tt class="py-lineno">491</tt> <tt class="py-line"> </tt>
|
|
<a name="L492"></a><tt class="py-lineno">492</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">cached_property</tt> </tt>
|
|
<a name="Country.top_tracks"></a><div id="Country.top_tracks-def"><a name="L493"></a><tt class="py-lineno">493</tt> <a class="py-toggle" href="#" id="Country.top_tracks-toggle" onclick="return toggle('Country.top_tracks');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="lastfm.geo.Country-class.html#top_tracks">top_tracks</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
|
</div><div id="Country.top_tracks-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Country.top_tracks-expanded"><a name="L494"></a><tt class="py-lineno">494</tt> <tt class="py-line"> <tt class="py-docstring">"""top tracks of the country"""</tt> </tt>
|
|
<a name="L495"></a><tt class="py-lineno">495</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-136" class="py-name"><a title="lastfm.geo.Country.get_top_tracks
|
|
lastfm.geo.Geo.get_top_tracks
|
|
lastfm.user.User.get_top_tracks" class="py-name" href="#" onclick="return doclink('link-136', 'get_top_tracks', 'link-89');">get_top_tracks</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
|
|
</div><a name="L496"></a><tt class="py-lineno">496</tt> <tt class="py-line"> </tt>
|
|
<a name="L497"></a><tt class="py-lineno">497</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">top_property</tt><tt class="py-op">(</tt><tt class="py-string">"top_tracks"</tt><tt class="py-op">)</tt> </tt>
|
|
<a name="Country.top_track"></a><div id="Country.top_track-def"><a name="L498"></a><tt class="py-lineno">498</tt> <a class="py-toggle" href="#" id="Country.top_track-toggle" onclick="return toggle('Country.top_track');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="lastfm.geo.Country-class.html#top_track">top_track</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
|
</div><div id="Country.top_track-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Country.top_track-expanded"><a name="L499"></a><tt class="py-lineno">499</tt> <tt class="py-line"> <tt class="py-docstring">"""top track of the country"""</tt> </tt>
|
|
<a name="L500"></a><tt class="py-lineno">500</tt> <tt class="py-line"> <tt class="py-keyword">pass</tt> </tt>
|
|
</div><a name="L501"></a><tt class="py-lineno">501</tt> <tt class="py-line"> </tt>
|
|
<a name="L502"></a><tt class="py-lineno">502</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">cached_property</tt> </tt>
|
|
<a name="Country.events"></a><div id="Country.events-def"><a name="L503"></a><tt class="py-lineno">503</tt> <a class="py-toggle" href="#" id="Country.events-toggle" onclick="return toggle('Country.events');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="lastfm.geo.Country-class.html#events">events</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
|
</div><div id="Country.events-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Country.events-expanded"><a name="L504"></a><tt class="py-lineno">504</tt> <tt class="py-line"> <tt class="py-docstring">"""events taking place at/around the location"""</tt> </tt>
|
|
<a name="L505"></a><tt class="py-lineno">505</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-137" class="py-name"><a title="lastfm.geo.Geo" class="py-name" href="#" onclick="return doclink('link-137', 'Geo', 'link-88');">Geo</a></tt><tt class="py-op">.</tt><tt id="link-138" class="py-name"><a title="lastfm.geo.Geo.get_events
|
|
lastfm.geo.Location.get_events" class="py-name" href="#" onclick="return doclink('link-138', 'get_events', 'link-94');">get_events</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_api</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-139" class="py-name"><a title="lastfm.album.Album.name
|
|
lastfm.artist.Artist.name
|
|
lastfm.geo.Country.name
|
|
lastfm.group.Group.name
|
|
lastfm.tag.Tag.name
|
|
lastfm.track.Track.name
|
|
lastfm.user.User.name
|
|
lastfm.venue.Venue.name" class="py-name" href="#" onclick="return doclink('link-139', 'name', 'link-37');">name</a></tt><tt class="py-op">)</tt> </tt>
|
|
</div><a name="L506"></a><tt class="py-lineno">506</tt> <tt class="py-line"> </tt>
|
|
<a name="L507"></a><tt class="py-lineno">507</tt> <tt class="py-line"> <tt class="py-decorator">@</tt><tt class="py-decorator">staticmethod</tt> </tt>
|
|
<a name="Country._hash_func"></a><div id="Country._hash_func-def"><a name="L508"></a><tt class="py-lineno">508</tt> <a class="py-toggle" href="#" id="Country._hash_func-toggle" onclick="return toggle('Country._hash_func');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="lastfm.geo.Country-class.html#_hash_func">_hash_func</a><tt class="py-op">(</tt><tt class="py-op">*</tt><tt class="py-param">args</tt><tt class="py-op">,</tt> <tt class="py-op">**</tt><tt class="py-param">kwds</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
|
</div><div id="Country._hash_func-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Country._hash_func-expanded"><a name="L509"></a><tt class="py-lineno">509</tt> <tt class="py-line"> <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
|
|
<a name="L510"></a><tt class="py-lineno">510</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">hash</tt><tt class="py-op">(</tt><tt class="py-name">kwds</tt><tt class="py-op">[</tt><tt class="py-string">'name'</tt><tt class="py-op">]</tt><tt class="py-op">.</tt><tt class="py-name">lower</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
|
|
<a name="L511"></a><tt class="py-lineno">511</tt> <tt class="py-line"> <tt class="py-keyword">except</tt> <tt class="py-name">KeyError</tt><tt class="py-op">:</tt> </tt>
|
|
<a name="L512"></a><tt class="py-lineno">512</tt> <tt class="py-line"> <tt class="py-keyword">raise</tt> <tt id="link-140" class="py-name"><a title="lastfm.error.InvalidParametersError" class="py-name" href="#" onclick="return doclink('link-140', 'InvalidParametersError', 'link-76');">InvalidParametersError</a></tt><tt class="py-op">(</tt><tt class="py-string">"name has to be provided for hashing"</tt><tt class="py-op">)</tt> </tt>
|
|
</div><a name="L513"></a><tt class="py-lineno">513</tt> <tt class="py-line"> </tt>
|
|
<a name="Country.__hash__"></a><div id="Country.__hash__-def"><a name="L514"></a><tt class="py-lineno">514</tt> <a class="py-toggle" href="#" id="Country.__hash__-toggle" onclick="return toggle('Country.__hash__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="lastfm.geo.Country-class.html#__hash__">__hash__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
|
</div><div id="Country.__hash__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Country.__hash__-expanded"><a name="L515"></a><tt class="py-lineno">515</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__class__</tt><tt class="py-op">.</tt><tt id="link-141" class="py-name"><a title="lastfm.album.Album._hash_func
|
|
lastfm.artist.Artist._hash_func
|
|
lastfm.event.Event._hash_func
|
|
lastfm.geo.Country._hash_func
|
|
lastfm.geo.Location._hash_func
|
|
lastfm.group.Group._hash_func
|
|
lastfm.playlist.Playlist._hash_func
|
|
lastfm.shout.Shout._hash_func
|
|
lastfm.tag.Tag._hash_func
|
|
lastfm.track.Track._hash_func
|
|
lastfm.user.User.Library._hash_func
|
|
lastfm.user.User.Playlist._hash_func
|
|
lastfm.user.User._hash_func
|
|
lastfm.venue.Venue._hash_func
|
|
lastfm.weeklychart.WeeklyChart._hash_func" class="py-name" href="#" onclick="return doclink('link-141', '_hash_func', 'link-101');">_hash_func</a></tt><tt class="py-op">(</tt><tt id="link-142" class="py-name"><a title="lastfm.album.Album.name
|
|
lastfm.artist.Artist.name
|
|
lastfm.geo.Country.name
|
|
lastfm.group.Group.name
|
|
lastfm.tag.Tag.name
|
|
lastfm.track.Track.name
|
|
lastfm.user.User.name
|
|
lastfm.venue.Venue.name" class="py-name" href="#" onclick="return doclink('link-142', 'name', 'link-37');">name</a></tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-143" class="py-name"><a title="lastfm.album.Album.name
|
|
lastfm.artist.Artist.name
|
|
lastfm.geo.Country.name
|
|
lastfm.group.Group.name
|
|
lastfm.tag.Tag.name
|
|
lastfm.track.Track.name
|
|
lastfm.user.User.name
|
|
lastfm.venue.Venue.name" class="py-name" href="#" onclick="return doclink('link-143', 'name', 'link-37');">name</a></tt><tt class="py-op">)</tt> </tt>
|
|
</div><a name="L516"></a><tt class="py-lineno">516</tt> <tt class="py-line"> </tt>
|
|
<a name="Country.__eq__"></a><div id="Country.__eq__-def"><a name="L517"></a><tt class="py-lineno">517</tt> <a class="py-toggle" href="#" id="Country.__eq__-toggle" onclick="return toggle('Country.__eq__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="lastfm.geo.Country-class.html#__eq__">__eq__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">other</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
|
</div><div id="Country.__eq__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Country.__eq__-expanded"><a name="L518"></a><tt class="py-lineno">518</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-144" class="py-name"><a title="lastfm.album.Album.name
|
|
lastfm.artist.Artist.name
|
|
lastfm.geo.Country.name
|
|
lastfm.group.Group.name
|
|
lastfm.tag.Tag.name
|
|
lastfm.track.Track.name
|
|
lastfm.user.User.name
|
|
lastfm.venue.Venue.name" class="py-name" href="#" onclick="return doclink('link-144', 'name', 'link-37');">name</a></tt><tt class="py-op">.</tt><tt class="py-name">lower</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-name">other</tt><tt class="py-op">.</tt><tt id="link-145" class="py-name"><a title="lastfm.album.Album.name
|
|
lastfm.artist.Artist.name
|
|
lastfm.geo.Country.name
|
|
lastfm.group.Group.name
|
|
lastfm.tag.Tag.name
|
|
lastfm.track.Track.name
|
|
lastfm.user.User.name
|
|
lastfm.venue.Venue.name" class="py-name" href="#" onclick="return doclink('link-145', 'name', 'link-37');">name</a></tt><tt class="py-op">.</tt><tt class="py-name">lower</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
|
|
</div><a name="L519"></a><tt class="py-lineno">519</tt> <tt class="py-line"> </tt>
|
|
<a name="Country.__lt__"></a><div id="Country.__lt__-def"><a name="L520"></a><tt class="py-lineno">520</tt> <a class="py-toggle" href="#" id="Country.__lt__-toggle" onclick="return toggle('Country.__lt__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="lastfm.geo.Country-class.html#__lt__">__lt__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">other</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
|
</div><div id="Country.__lt__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Country.__lt__-expanded"><a name="L521"></a><tt class="py-lineno">521</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-146" class="py-name"><a title="lastfm.album.Album.name
|
|
lastfm.artist.Artist.name
|
|
lastfm.geo.Country.name
|
|
lastfm.group.Group.name
|
|
lastfm.tag.Tag.name
|
|
lastfm.track.Track.name
|
|
lastfm.user.User.name
|
|
lastfm.venue.Venue.name" class="py-name" href="#" onclick="return doclink('link-146', 'name', 'link-37');">name</a></tt> <tt class="py-op"><</tt> <tt class="py-name">other</tt><tt class="py-op">.</tt><tt id="link-147" class="py-name"><a title="lastfm.album.Album.name
|
|
lastfm.artist.Artist.name
|
|
lastfm.geo.Country.name
|
|
lastfm.group.Group.name
|
|
lastfm.tag.Tag.name
|
|
lastfm.track.Track.name
|
|
lastfm.user.User.name
|
|
lastfm.venue.Venue.name" class="py-name" href="#" onclick="return doclink('link-147', 'name', 'link-37');">name</a></tt> </tt>
|
|
</div><a name="L522"></a><tt class="py-lineno">522</tt> <tt class="py-line"> </tt>
|
|
<a name="Country.__repr__"></a><div id="Country.__repr__-def"><a name="L523"></a><tt class="py-lineno">523</tt> <a class="py-toggle" href="#" id="Country.__repr__-toggle" onclick="return toggle('Country.__repr__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="lastfm.geo.Country-class.html#__repr__">__repr__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
|
</div><div id="Country.__repr__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Country.__repr__-expanded"><a name="L524"></a><tt class="py-lineno">524</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-string">"<lastfm.geo.Country: %s>"</tt> <tt class="py-op">%</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-148" class="py-name"><a title="lastfm.album.Album.name
|
|
lastfm.artist.Artist.name
|
|
lastfm.geo.Country.name
|
|
lastfm.group.Group.name
|
|
lastfm.tag.Tag.name
|
|
lastfm.track.Track.name
|
|
lastfm.user.User.name
|
|
lastfm.venue.Venue.name" class="py-name" href="#" onclick="return doclink('link-148', 'name', 'link-37');">name</a></tt> </tt>
|
|
</div></div><a name="L525"></a><tt class="py-lineno">525</tt> <tt class="py-line"> </tt>
|
|
<a name="L526"></a><tt class="py-lineno">526</tt> <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-149" class="py-name"><a title="lastfm" class="py-name" href="#" onclick="return doclink('link-149', 'lastfm', 'link-0');">lastfm</a></tt><tt class="py-op">.</tt><tt id="link-150" class="py-name"><a title="lastfm.api" class="py-name" href="#" onclick="return doclink('link-150', 'api', 'link-19');">api</a></tt> <tt class="py-keyword">import</tt> <tt id="link-151" class="py-name"><a title="lastfm.api.Api" class="py-name" href="#" onclick="return doclink('link-151', 'Api', 'link-75');">Api</a></tt> </tt>
|
|
<a name="L527"></a><tt class="py-lineno">527</tt> <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-152" class="py-name"><a title="lastfm" class="py-name" href="#" onclick="return doclink('link-152', 'lastfm', 'link-0');">lastfm</a></tt><tt class="py-op">.</tt><tt id="link-153" class="py-name"><a title="lastfm.album.Album.artist
|
|
lastfm.artist
|
|
lastfm.track.Track.artist" class="py-name" href="#" onclick="return doclink('link-153', 'artist', 'link-57');">artist</a></tt> <tt class="py-keyword">import</tt> <tt id="link-154" class="py-name"><a title="lastfm.artist.Artist" class="py-name" href="#" onclick="return doclink('link-154', 'Artist', 'link-35');">Artist</a></tt> </tt>
|
|
<a name="L528"></a><tt class="py-lineno">528</tt> <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-155" class="py-name"><a title="lastfm" class="py-name" href="#" onclick="return doclink('link-155', 'lastfm', 'link-0');">lastfm</a></tt><tt class="py-op">.</tt><tt id="link-156" class="py-name" targets="Module lastfm.error=lastfm.error-module.html"><a title="lastfm.error" class="py-name" href="#" onclick="return doclink('link-156', 'error', 'link-156');">error</a></tt> <tt class="py-keyword">import</tt> <tt id="link-157" class="py-name"><a title="lastfm.error.InvalidParametersError" class="py-name" href="#" onclick="return doclink('link-157', 'InvalidParametersError', 'link-76');">InvalidParametersError</a></tt> </tt>
|
|
<a name="L529"></a><tt class="py-lineno">529</tt> <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-158" class="py-name"><a title="lastfm" class="py-name" href="#" onclick="return doclink('link-158', 'lastfm', 'link-0');">lastfm</a></tt><tt class="py-op">.</tt><tt id="link-159" class="py-name" targets="Module lastfm.event=lastfm.event-module.html"><a title="lastfm.event" class="py-name" href="#" onclick="return doclink('link-159', 'event', 'link-159');">event</a></tt> <tt class="py-keyword">import</tt> <tt id="link-160" class="py-name"><a title="lastfm.event.Event" class="py-name" href="#" onclick="return doclink('link-160', 'Event', 'link-23');">Event</a></tt> </tt>
|
|
<a name="L530"></a><tt class="py-lineno">530</tt> <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-161" class="py-name"><a title="lastfm" class="py-name" href="#" onclick="return doclink('link-161', 'lastfm', 'link-0');">lastfm</a></tt><tt class="py-op">.</tt><tt id="link-162" class="py-name"><a title="lastfm.album.Album.stats
|
|
lastfm.artist.Artist.stats
|
|
lastfm.event.Event.stats
|
|
lastfm.stats
|
|
lastfm.tag.Tag.stats
|
|
lastfm.track.Track.stats
|
|
lastfm.user.User.stats
|
|
lastfm.weeklychart.WeeklyChart.stats" class="py-name" href="#" onclick="return doclink('link-162', 'stats', 'link-39');">stats</a></tt> <tt class="py-keyword">import</tt> <tt id="link-163" class="py-name"><a title="lastfm.stats.Stats" class="py-name" href="#" onclick="return doclink('link-163', 'Stats', 'link-40');">Stats</a></tt> </tt>
|
|
<a name="L531"></a><tt class="py-lineno">531</tt> <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-164" class="py-name"><a title="lastfm" class="py-name" href="#" onclick="return doclink('link-164', 'lastfm', 'link-0');">lastfm</a></tt><tt class="py-op">.</tt><tt id="link-165" class="py-name" targets="Module lastfm.track=lastfm.track-module.html"><a title="lastfm.track" class="py-name" href="#" onclick="return doclink('link-165', 'track', 'link-165');">track</a></tt> <tt class="py-keyword">import</tt> <tt id="link-166" class="py-name"><a title="lastfm.track.Track" class="py-name" href="#" onclick="return doclink('link-166', 'Track', 'link-53');">Track</a></tt> </tt>
|
|
<a name="L532"></a><tt class="py-lineno">532</tt> <tt class="py-line"> </tt><script type="text/javascript">
|
|
<!--
|
|
expandto(location.href);
|
|
// -->
|
|
</script>
|
|
</pre>
|
|
<br />
|
|
<!-- ==================== NAVIGATION BAR ==================== -->
|
|
<table class="navbar" border="0" width="100%" cellpadding="0"
|
|
bgcolor="#a0c0ff" cellspacing="0">
|
|
<tr valign="middle">
|
|
<!-- Home link -->
|
|
<th> <a
|
|
href="lastfm-module.html">Home</a> </th>
|
|
|
|
<!-- Tree link -->
|
|
<th> <a
|
|
href="module-tree.html">Trees</a> </th>
|
|
|
|
<!-- Index link -->
|
|
<th> <a
|
|
href="identifier-index.html">Indices</a> </th>
|
|
|
|
<!-- Help link -->
|
|
<th> <a
|
|
href="help.html">Help</a> </th>
|
|
|
|
<!-- Project homepage -->
|
|
<th class="navbar" align="right" width="100%">
|
|
<table border="0" cellpadding="0" cellspacing="0">
|
|
<tr><th class="navbar" align="center"
|
|
><a class="navbar" target="_top" href="http://code.google.com/p/python-lastfm/">python-lastfm</a></th>
|
|
</tr></table></th>
|
|
</tr>
|
|
</table>
|
|
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
|
|
<tr>
|
|
<td align="left" class="footer">
|
|
Generated by Epydoc 3.0.1 on Tue Mar 10 11:14:35 2009
|
|
</td>
|
|
<td align="right" class="footer">
|
|
<a target="mainFrame" href="http://epydoc.sourceforge.net"
|
|
>http://epydoc.sourceforge.net</a>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<script type="text/javascript">
|
|
<!--
|
|
// Private objects are initially displayed (because if
|
|
// javascript is turned off then we want them to be
|
|
// visible); but by default, we want to hide them. So hide
|
|
// them unless we have a cookie that says to show them.
|
|
checkCookie();
|
|
// -->
|
|
</script>
|
|
</body>
|
|
</html>
|