Code Monkey home page Code Monkey logo

clyrics's People

Contributors

genomorro avatar natezb avatar trizen avatar vasiliev-vb avatar veraellyunjie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

clyrics's Issues

There is no form named "f"

Hey,
I've recently been getting this error:

There is no form named "f" at /usr/share/perl5/vendor_perl/WWW/Mechanize.pm line 1011.

Fact is, I cloned the code, and replaced form_name => 'f' by form_id = 'tsf' and it works. Not sure why though, google.com does indeed have a form named f ($('[name="f"]') returns the correct form).

Any idea about this?

P.S. I checked the older issue which was related to perl-lwp-protocol-https, I have that installed.

Title along lyrics in output

AFAIK there is no way to output the title of the song when not started as a daemon. Would it be possible to add an option for that?

I could (maybe) send a patch if you think you would like that feature too.

Search by artist on the command-line

I've found the package on AUR. It is cool that it supports cmus in daemon mode. I'll definitely try it. I've been azlyrics from python-azlyrics-git using before discovering clyrics.

Only thing, how can specify the artist in the search, for instance:

Clouds - Heaven Was Blind to My Grief

to retrieve me lyrics of my favourite metal band :-)

I hope it (would) support(s) non-very-popular genres (unlike azlyrics) fetching lyrics from darklyrics.

Thank you for the attention.

clyrics cannot access Google anymore

I least I think that's what's happening. Regardless of what query I enter, I always get the following output:

clyrics -dd test
** GET https://www.google.com/ ==> 200 OK
** GET https://www.google.com/search?q=test+site%3Aazlyrics.com+OR+site%3Agenius.com&source=hp&sca_esv=572214004&ie=UTF-8 ==> 302 Found
** GET https://consent.google.com/ml?continue=https://www.google.com/search%3Fq%3Dtest%2Bsite%253Aazlyrics.com%2BOR%2Bsite%253Agenius.com%26source%3Dhp%26sca_esv%3D572214004%26ie%3DUTF-8&gl=DE&m=0&pc=srp&uxe=eomcrt&cm=4&hl=de&src=1 ==> 200 OK

Unusual output

screenshot_155804_02012021

While playing the song you can see in the attached image, this piece of code appeared.

Use DuckDuckGo?

Hey, I changed the search engine to DuckDuckGo in a quick personal fork and I find it performs much better (more chance to actually find the correct song lyrics) as it plays nicer with AZLyrics. Maybe it could be interesting to make it an option?

I mean, maybe it's only for my musical taste, so I don't know if it would make sense to simply change it to DDG at once.

(btw, I can't really code >.<)

Decode HTML entities for all plugins

Nice work on clyrics, I really like it!

Currently only 4 of the plugins call decode_entities on the text they return, so I've noticed encoded HTML entities in some fetched lyrics.

Tell me if I'm wrong, but I think it would probably make the most sense to do the decoding in get_lyrics() instead, so that it gets applied to all the plugins automatically.

There is no form named "f"

With latest git commit, it crashes on every query with

There is no form named "f" at /usr/share/perl5/vendor_perl/WWW/Mechanize.pm line 1938.

Mechanize.pm is version 1.73.

Offline

Is it possible to save lyrics once viewed.

google refuses to search after 100 queries

hi,
it seems that google allows 100 searches per day for free.
after it, i just get error messages, no lyrics. (see below)
could you please find an other way to fetch lyrics?
thanks,
cs

$ ./cylrics -d metallica nothing else matters
** GET https://www.google.com/ ==> 200 OK
** GET https://www.google.com/search?source=hp&ei=c3gIWsClIPKS6QTQ_J-ADA&q=metallica+nothing+else+matters+site%3Aazlyrics.com+OR+site%3Asonglyrics.com+OR+site%3Agenius.com+OR+site%3Arapgenius.com+OR+site%3Alyricskong.com+OR+site%3Aversuri.ro+OR+site%3Alyricsmania.com+OR+site%3Ayololyrics.com+OR+site%3Alyricstime.com+OR+site%3Ametrolyrics.com+OR+site%3Areleaselyrics.com+OR+site%3Auulyrics.com+OR+site%3Aval.fm+OR+site%3Alyrics.wikia.com+OR+site%3Aalbumcancionyletra.com+OR+site%3Aelyrics.net+OR+site%3Aletras.com+OR+site%3Aartists.letssingit.com&ie=UTF-8 ==> 302 Found (1s)
** GET https://ipv6.google.com/sorry/index?continue=https://www.google.com/search%3Fsource%3Dhp%26ei%3Dc3gIWsClIPKS6QTQ_J-ADA%26q%3Dmetallica%2Bnothing%2Belse%2Bmatters%2Bsite%253Aazlyrics.com%2BOR%2Bsite%253Asonglyrics.com%2BOR%2Bsite%253Agenius.com%2BOR%2Bsite%253Arapgenius.com%2BOR%2Bsite%253Alyricskong.com%2BOR%2Bsite%253Aversuri.ro%2BOR%2Bsite%253Alyricsmania.com%2BOR%2Bsite%253Ayololyrics.com%2BOR%2Bsite%253Alyricstime.com%2BOR%2Bsite%253Ametrolyrics.com%2BOR%2Bsite%253Areleaselyrics.com%2BOR%2Bsite%253Auulyrics.com%2BOR%2Bsite%253Aval.fm%2BOR%2Bsite%253Alyrics.wikia.com%2BOR%2Bsite%253Aalbumcancionyletra.com%2BOR%2Bsite%253Aelyrics.net%2BOR%2Bsite%253Aletras.com%2BOR%2Bsite%253Aartists.letssingit.com%26ie%3DUTF-8&q=EhAgAQRwHxoDCAAAAADerb7vGPPwodAFIhkA8aeDS1qU1zq4XytHDPoJ8GuVG2OtYmtVMgFy ==> 503 Service Unavailable
$

No clickable input with name btnG

hey @trizen ! First things first: thanks alot for ur contributions and followups. Ive been a clyrics user for years now; however, on my ArchLinux_i686 machine I started getting this new error message after upgrading from the archlinuxi686(defunct) repos to the archlinux32 repos:

No clickable input with name btnG at $HOME/perl5/lib/perl5/WWW/Mechanize.pm line 913.

I have the following required deps installed:

  • extra/perl-lwp-protocol-https 6.07-3.0
  • community/perl-www-mechanize 1.90-1.0

If i turn on the debbugging options I get this before errmsg:

** Title: <Red Hot Chili Peppers - Dani California Greatest Hits Album Out in L.A 1994> ** GET https://www.google.com/ ==> 200 OK (2s)
Any help would be greatly appreciated, if I figure it out on my end ill let u know.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.