README 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. Introduction
  2. ------------
  3. Lastscrape is a quick hack for pulling listened tracks from any Last.fm
  4. profile library. It is written in Python and requires the BeautifulSoup
  5. module.[1] Version 3.1 of it seems to be broken[2] so use version
  6. 3.0.7a.
  7. How it works
  8. ------------
  9. The script loads the page at <http://last.fm/user/PROFILE/tracks>,
  10. where PROFILE is any Last.fm profile name. It checks how many pages the
  11. library has, then loops through all of them, gathering all the tracks
  12. you've listened.
  13. The program outputs a TSV-formatted (tab-separated) list of the track data.
  14. Usage
  15. -----
  16. You can simply run:
  17. ./lastscrape.py USER [OUTPUT_FILE]
  18. Output file is optional, but you may want to use it if your terminal encoding
  19. is not UTF-8.
  20. To save the track data in a file, you can run e.g.:
  21. ./lastscrape.py USER trackdata.tsv
  22. Bugs & suggestions
  23. ------------------
  24. Please send any patches, bugs and suggestions to <jarkkop@iki.fi>.
  25. Footnotes
  26. ---------
  27. [1]: http://pypi.python.org/pypi/BeautifulSoup/3.0.7a
  28. [2]: http://crummy.com/software/BeautifulSoup/3.1-problems.html