Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

Commit

Permalink
updated README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
scf4 committed Apr 27, 2017
1 parent 3ae2cee commit f21de22
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ lyricist.song(714198).then(song => console.log(song.title));
## Get song lyrics
The Genius API doesn't offer lyrics, but Lyricist can scrape Genius.com for you. Simply provide the `fetchLyrics` option like this:
```js
const lyrics = await lyricist.song(714198, { fetchLyrics: true });

const song = await lyricist.song(714198, { fetchLyrics: true });
console.log(song.lyrics);
// output: Spirit of my silence I can hear you...
```
## Look up an album
Expand Down
2 changes: 1 addition & 1 deletion lib/index.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Lyricist from './index';
import Lyricist from 'lyricist';
import authKey from './test_key';

describe('Lyricist', () => {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"homepage": "https://github.com/scf4/lyricist#readme",
"dependencies": {
"cheerio": "^0.22.0",
"lyricist": "^2.0.0",
"node-fetch": "^1.6.3"
},
"devDependencies": {
Expand Down
7 changes: 7 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1790,6 +1790,13 @@ loose-envify@^1.0.0:
dependencies:
js-tokens "^3.0.0"

lyricist@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/lyricist/-/lyricist-2.0.0.tgz#787976ba6cc77d1d173f7fd25492207d9575173e"
dependencies:
cheerio "^0.22.0"
node-fetch "^1.6.3"

[email protected]:
version "1.0.11"
resolved "https://registry.yarnpkg.com/makeerror/-/makeerror-1.0.11.tgz#e01a5c9109f2af79660e4e8b9587790184f5a96c"
Expand Down

0 comments on commit f21de22

Please sign in to comment.