| ¸¶¸Ö·¹À̵å Python ÀÎÅÍÆäÀ̽º´Â ³» Àë (http://thisismyjam.com) APIÀÔ´Ï´Ù. |
Áö±Ý ´Ù¿î·Îµå |
¸¶¸Ö·¹ÀÌµå ¼øÀ§ ¹× ¿ä¾à
- ƯÇã:
- Other/Proprietary Li...
- °Ô½ÃÀÚ À̸§:
- Tyler Williams
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://echonest.com
¸¶¸Ö·¹À̵å ű×
¸¶¸Ö·¹ÀÌµå ¼³¸í
¸¶¸Ö·¹À̵å´Â ÀÌ°ÍÀ»À§ÇÑ ÆÄÀ̽ã Ŭ¶óÀ̾ðÆ®ÀÔ´Ï´Ù. * ¸ÀÀÖ´Â ¸À * ½±°Ô »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. ½±°Ô »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù! installeasy_install -u marmaladegetting ½ÃÀÛ ¸¶¸Ö·¹À̵å me = marmalade.timjuser ( 'tylerbw') def print_friends (»ç¿ëÀÚ) : i, follower in enyumerate (user.get_followers) (sort = 'affinity')) : '\ t', i, ':', follower.get_full_name () print_friends (me) print_friends (me) def find_slacker_friends (»ç¿ëÀÚ) : Ä£±¸°¡ ¾Æ´Ñ °æ¿ì user.get_followers ()ÀÇ Ä£±¸¸¦À§ÇÑ print_slacker_friends (me) a_jam = marmalade.jam.from_user ( 'flaneur') print a_jam.get_num_plays () def find_most_popular_follower (»ç¿ëÀÚ) : »ç¿ëÀÚÀÇ Ä£±¸¸¦À§ÇÑ Á¤·Ä ((friend.get_num_followers (), Ä£±¸) get_Followers ()) Print find_most_popular_follower (ME) ÀÓÀÇ ÀÓÀÇ DEF random_walk_generator (»ç¿ëÀÚ, ´Ü°è _away) : xrange (steps_away)¿¡¼ _ _ _followers () for User.get_followers () _ _User = Random.Choice ( ÃßÁ¾ÀÚ) your new_user user = new_user followers = user.get_followers () Àμâ "==>"join (u.id for random_walk_generator (me, 4)¿¡ ´ëÇÑ u.id) advan ´õ ¸¹Àº ¿¹Á¦¸¦À§ÇÑ ¼Ò½º ¶Ç´Â Test.pyÀÇ Cedlook. Á¦Ç°ÀÇ È¨ÆäÀÌÁö
¸¶¸Ö·¹ÀÌµå °ü·Ã ¼ÒÇÁÆ®¿þ¾î