Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thedivtagguy/songscraper
🎶 A package to scrapes songs, lyrics, album and year details from AZLyrics.com (all, or a range you specify) into a neat data frame, with just the artist's name.
https://github.com/thedivtagguy/songscraper
lyrics-fetcher music music-information-retrieval r text-mining
Last synced: 6 days ago
JSON representation
🎶 A package to scrapes songs, lyrics, album and year details from AZLyrics.com (all, or a range you specify) into a neat data frame, with just the artist's name.
- Host: GitHub
- URL: https://github.com/thedivtagguy/songscraper
- Owner: thedivtagguy
- Created: 2020-12-14T10:45:18.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-04-01T11:23:56.000Z (over 3 years ago)
- Last Synced: 2024-05-17T02:56:02.482Z (6 months ago)
- Topics: lyrics-fetcher, music, music-information-retrieval, r, text-mining
- Language: R
- Homepage:
- Size: 30.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Songscraper()
Songscraper is an easy-to-use R package for scraping song lyrics and information for a specific artist from AZLyrics.com
Just input the name, songscraper() does the rest.## Installation
To get a local copy up and running follow these simple steps.
```sh
library(devtools)
install_github("thedivtagguy/songscraper")```
## Documentation and Examples
```
?songscraper
```## Usage
```
#View Song Listsonglist(
"artistname"
)#Scrape Songs
songscraper(
"artistname",
from,
to
)
```## Examples
```
## Scrape songs by Iron and Wine
#URL: https://www.azlyrics.com/i/ironwine.html
#Artist Name: ironwinesongscraper("ironwine")
#Remember to put double quotes, otherwise it may be considered an object.
##Scrape top 5 songs based on tibble output of songlist() by Harry Styles
#URL: https://www.azlyrics.com/h/harrystyles.html
#Artist Name: harrystylessongscraper("harrystyles", 5)
##Scrape songs between song 50 to song 100 by Iron & Wine
#URL: https://www.azlyrics.com/i/ironwine.html
#Artist Name: ironwinesongscraper("ironwine", 50, 100)
#View list of all songs (helpful in determining numbers if you need to choose specific songs)
songlist("ironwine")
```## Contributing
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are **greatly appreciated**.
1. Fork the Project
2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)Currently, I'm looking to add:
1. Download songs from select albums only.
2. Download songs from select years.
3. Fetch Spotify track ID based on title.## License
Distributed under the MIT License. See `LICENSE` for more information.
## Contact
Aman Bhargava - [@thedivtagguy](https://twitter.com/thedivtagguy) - [email protected]
Project Link: [https://github.com/thedivtagguy/songscraper](https://github.com/thedivtagguy/songscraper)
## Acknowledgements
* [Matt M's Rvest scraping tutorial](https://rpubs.com/mattEJ/nickelback)