matthewbeke

Genius 2 LyricsReloaded

Jul 11th, 2018
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. name: Genius3
  2.  
  3. variables:
  4. artist:
  5. type: artist
  6. filters:
  7. - strip_diacritics
  8. - lowercase
  9. - [regex, '[^\sa-z0-9]\s*', ""]
  10. - [strip_nonascii, -]
  11.  
  12. title:
  13. type: title
  14. filters: artist
  15.  
  16. config:
  17. url: "http://genius.com/{artist}-{title}-lyrics"
  18. #The new patttern for genius.com
  19. pattern: ['<div\s+class="song_body-lyrics"[^>]*?>(?<lyrics>.*?)</lyrics>', s]
  20.  
  21. post-filters:
  22. - strip_html
  23. - clean_spaces
  24. - utf8_encode
Advertisement
Add Comment
Please, Sign In to add comment