Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- name: Genius3
- variables:
- artist:
- type: artist
- filters:
- - strip_diacritics
- - lowercase
- - [regex, '[^\sa-z0-9]\s*', ""]
- - [strip_nonascii, -]
- title:
- type: title
- filters: artist
- config:
- url: "http://genius.com/{artist}-{title}-lyrics"
- #The new patttern for genius.com
- pattern: ['<div\s+class="song_body-lyrics"[^>]*?>(?<lyrics>.*?)</lyrics>', s]
- post-filters:
- - strip_html
- - clean_spaces
- - utf8_encode
Advertisement
Add Comment
Please, Sign In to add comment