lastfm-users 1.0.1
A LastFM scraping package that allows you to get user info
Keywords: lastfm,last fm,music

# LastFM User Info
This package uses web scraping to get user info from Last FM, info such as username, avatar, total scrobbles, recent scrobbles and top scrobbles.
## Example
```python
import lastfm_users as lastfm
print(lastfm.get("cxllm"))
```
## Output
```python
{
    "username": "cxllm",
    "scrobbles": 7774,
    "artists": 128,
    "recent": [
        {
            "name": "La vie en noir",
            "artist": "Ajar",
            "time": "Scrobbling now",
            "scrobbles": None,
            "url": "https://last.fm/music/Ajar/_/La+vie+en+noir",
            "artist_url": "https://last.fm/music/Ajar",
            "cover": "https://lastfm.freetls.fastly.net/i/u/64s/fff1ac37a47e7e4239c611a0e336a7c5.jpg",
        },
        {
            "name": "Tourner la tête",
            "artist": "Hornet La Frappe",
            "time": "5 minutes ago",
            "scrobbles": None,
            "url": "https://last.fm/music/Hornet+La+Frappe/_/Tourner+la+t%C3%AAte",
            "artist_url": "https://last.fm/music/Hornet+La+Frappe",
            "cover": "https://lastfm.freetls.fastly.net/i/u/64s/ed09dbaec53162be19b0e33d27ddcbca.jpg",
        },
        {
            "name": "Carmen",
            "artist": "Stromae",
            "time": "8 minutes ago",
            "scrobbles": None,
            "url": "https://last.fm/music/Stromae/_/Carmen",
            "artist_url": "https://last.fm/music/Stromae",
            "cover": "https://lastfm.freetls.fastly.net/i/u/64s/8bbbc22e83bb40f1c07956ec8e8f578e.jpg",
        },
        {
            "name": "Placebo",
            "artist": "Dinos",
            "time": "11 minutes ago",
            "scrobbles": None,
            "url": "https://last.fm/music/Dinos/_/Placebo",
            "artist_url": "https://last.fm/music/Dinos",
            "cover": "https://lastfm.freetls.fastly.net/i/u/64s/bee1e9a901e2e8d0c2095f991cc78357.jpg",
        },
        {
            "name": "J'me téléporte (feat. Dadju & S.Pri Noir)",
            "artist": "Lefa",
            "time": "15 minutes ago",
            "scrobbles": None,
            "url": "https://last.fm/music/Lefa/_/J%27me+t%C3%A9l%C3%A9porte+(feat.+Dadju+&+S.Pri+Noir)",
            "artist_url": "https://last.fm/music/Lefa",
            "cover": "https://lastfm.freetls.fastly.net/i/u/64s/fa4226a678523efea1556f7a3a52cf69.jpg",
        },
        {
            "name": "Train de vie (feat. PLK)",
            "artist": "Leto",
            "time": "19 minutes ago",
            "scrobbles": None,
            "url": "https://last.fm/music/Leto/_/Train+de+vie+(feat.+PLK)",
            "artist_url": "https://last.fm/music/Leto",
            "cover": "https://lastfm.freetls.fastly.net/i/u/64s/aa1777018bb6bc8a3b8d5e05317c2f32.jpg",
        },
        {
            "name": "Adventure of a Lifetime",
            "artist": "Coldplay",
            "time": "23 minutes ago",
            "scrobbles": None,
            "url": "https://last.fm/music/Coldplay/_/Adventure+of+a+Lifetime",
            "artist_url": "https://last.fm/music/Coldplay",
            "cover": "https://lastfm.freetls.fastly.net/i/u/64s/174d490504bf25ced4880e8fd54ddb1c.jpg",
        },
        {
            "name": "Moules frites",
            "artist": "Stromae",
            "time": "an hour ago",
            "scrobbles": None,
            "url": "https://last.fm/music/Stromae/_/Moules+frites",
            "artist_url": "https://last.fm/music/Stromae",
            "cover": "https://lastfm.freetls.fastly.net/i/u/64s/8bbbc22e83bb40f1c07956ec8e8f578e.jpg",
        },
        {
            "name": "jveux pas",
            "artist": "Luther",
            "time": "an hour ago",
            "scrobbles": None,
            "url": "https://last.fm/music/Luther/_/jveux+pas",
            "artist_url": "https://last.fm/music/Luther",
            "cover": "https://lastfm.freetls.fastly.net/i/u/64s/c6f59c1e5e7240a4c0d427abd71f3dbb.jpg",
        },
        {
            "name": "17",
            "artist": "Noti",
            "time": "an hour ago",
            "scrobbles": None,
            "url": "https://last.fm/music/Noti/_/17",
            "artist_url": "https://last.fm/music/Noti",
            "cover": "https://lastfm.freetls.fastly.net/i/u/64s/c6f59c1e5e7240a4c0d427abd71f3dbb.jpg",
        },
    ],
    "top": [
        {
            "name": "Tombéciba",
            "artist": "Ajar",
            "time": None,
            "scrobbles": 196,
            "url": "https://last.fm/music/Ajar/_/Tomb%C3%A9ciba",
            "artist_url": "https://last.fm/music/Ajar",
            "cover": "https://lastfm.freetls.fastly.net/i/u/64s/08caf2e80826ad19e03f90e3f6bb06f6.jpg",
        },
        {
            "name": "Dansez",
            "artist": "FASION",
            "time": None,
            "scrobbles": 165,
            "url": "https://last.fm/music/FASION/_/Dansez",
            "artist_url": "https://last.fm/music/FASION",
            "cover": "https://lastfm.freetls.fastly.net/i/u/64s/f3b62b782a87b9fa7ffcc0a0cf265e0d.jpg",
        },
        {
            "name": "Temps",
            "artist": "Ajar",
            "time": None,
            "scrobbles": 124,
            "url": "https://last.fm/music/Ajar/_/Temps",
            "artist_url": "https://last.fm/music/Ajar",
            "cover": "https://lastfm.freetls.fastly.net/i/u/64s/c6f59c1e5e7240a4c0d427abd71f3dbb.jpg",
        },
        {
            "name": "Pire que la mort",
            "artist": "Ajar",
            "time": None,
            "scrobbles": 116,
            "url": "https://last.fm/music/Ajar/_/Pire+que+la+mort",
            "artist_url": "https://last.fm/music/Ajar",
            "cover": "https://lastfm.freetls.fastly.net/i/u/64s/c6f59c1e5e7240a4c0d427abd71f3dbb.jpg",
        },
        {
            "name": "J'entends",
            "artist": "Angèle",
            "time": None,
            "scrobbles": 115,
            "url": "https://last.fm/music/Ang%C3%A8le/_/J%27entends",
            "artist_url": "https://last.fm/music/Ang%C3%A8le",
            "cover": "https://lastfm.freetls.fastly.net/i/u/64s/a5105695da302825f1d0574ec93e0927.jpg",
        },
        {
            "name": "Rasputin",
            "artist": "Majestic",
            "time": None,
            "scrobbles": 115,
            "url": "https://last.fm/music/Majestic/_/Rasputin",
            "artist_url": "https://last.fm/music/Majestic",
            "cover": "https://lastfm.freetls.fastly.net/i/u/64s/4128a6eb29f94943c9d206c08e625904.jpg",
        },
        {
            "name": "Carmen",
            "artist": "Stromae",
            "time": None,
            "scrobbles": 111,
            "url": "https://last.fm/music/Stromae/_/Carmen",
            "artist_url": "https://last.fm/music/Stromae",
            "cover": "https://lastfm.freetls.fastly.net/i/u/64s/8bbbc22e83bb40f1c07956ec8e8f578e.jpg",
        },
        {
            "name": "Ma 6t a craqué (feat. Ninho)",
            "artist": "kpoint",
            "time": None,
            "scrobbles": 110,
            "url": "https://last.fm/music/kpoint/_/Ma+6t+a+craqu%C3%A9+(feat.+Ninho)",
            "artist_url": "https://last.fm/music/kpoint",
            "cover": "https://lastfm.freetls.fastly.net/i/u/64s/c6f59c1e5e7240a4c0d427abd71f3dbb.jpg",
        },
        {
            "name": "17",
            "artist": "Noti",
            "time": None,
            "scrobbles": 101,
            "url": "https://last.fm/music/Noti/_/17",
            "artist_url": "https://last.fm/music/Noti",
            "cover": "https://lastfm.freetls.fastly.net/i/u/64s/c6f59c1e5e7240a4c0d427abd71f3dbb.jpg",
        },
        {
            "name": "A chaque jour...",
            "artist": "Dosseh",
            "time": None,
            "scrobbles": 100,
            "url": "https://last.fm/music/Dosseh/_/A+chaque+jour...",
            "artist_url": "https://last.fm/music/Dosseh",
            "cover": "https://lastfm.freetls.fastly.net/i/u/64s/f2e8509f50096e8d1b0412674365e40e.jpg",
        },
    ],
    "avatar": "https://lastfm.freetls.fastly.net/i/u/avatar170s/15ad3c0431c4ff8b90f28fdc925de303.png",
}
```