LyricFinder

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

    open-source license. It is capable of being used as a drop-in
    replacement, but some function names and other code changes will be
    needed.

    We've also added methods to easily change the "user-agent" passed to the
    lyrics sites, as needed/desired by the user programatically.

    We've also changed the default to search the supported sites randomly,
    instead of in the same fixed alphabetical order by module name
    ("load-balancing" the searches to all the sites). This is helpful when
    using LyricFinder as a plugin for streaming media players, such as the
    author's very own "Fauxdacious Media Player" that frequently stream
    internet radio stations, which can impose a "hit" on the lyrics sites
    each time the song title changes. This reduces the odds of a user's
    IP-address possibly being banned by a lyrics site for "too-frequent
    scraping / usage"! NOTE: If you want to prevent the usage of one or more
    of the specific sites, simply specify the *-omit* argument with a
    reference to a list of module names to skip, ie. *-omit =*>
    *'AZLyrics,Genius'* in the *new LyricFinder()* function. If you want to
    use one or more specific sites, or enforce a specific search order, you
    can call the fetch() method with a third argument consisting of the site

lib/LyricFinder.pm  view on Meta::CPAN

credits are included here, as required by their open-source license.  It is 
capable of being used as a drop-in replacement, but some function names and 
other code changes will be needed.

We've also added methods to easily change the "user-agent" passed to the 
lyrics sites, as needed/desired by the user programatically.

We've also changed the default to search the supported sites randomly, instead 
of in the same fixed alphabetical order by module name ("load-balancing" the 
searches to all the sites).  This is helpful when using LyricFinder as a 
plugin for streaming media players, such as the author's very own "Fauxdacious 
Media Player" that frequently stream internet radio stations, which can 
impose a "hit" on the lyrics sites each time the song title changes.  This 
reduces the odds of a user's IP-address possibly being banned by a lyrics site 
for "too-frequent scraping / usage"!  NOTE:  If you want to prevent the usage 
of one or more of the specific sites, simply specify the I<-omit> argument with 
a reference to a list of module names to skip, 
ie. I<-omit =>> I<'AZLyrics,Genius'> in the I<new LyricFinder()> function.  
If you want to use one or more specific sites, or enforce 
a specific search order, you can call the fetch() method with a third 
argument consisting of the site module name, ie. "Musixmatch", or reference to 



( run in 0.505 second using v1.01-cache-2.11-cpan-fd5d4e115d8 )