Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add lyric_finder lib crate #34

Merged
merged 15 commits into from
May 12, 2022
Merged

Add lyric_finder lib crate #34

merged 15 commits into from
May 12, 2022

Conversation

aome510
Copy link
Owner

@aome510 aome510 commented May 8, 2022

Implemented the lyric_finder crate that retrieves a song's lyric using https://genius.com and its APIs

@aome510 aome510 merged commit f92e6f3 into master May 12, 2022
@aome510 aome510 deleted the add-lyric-finder-lib branch May 12, 2022 02:36
@slikie
Copy link

slikie commented Mar 4, 2023

Is lyric_finder still working with its aggressive cloudflare captcha policy? I can't seem to be able to get the example working.

@slikie
Copy link

slikie commented Mar 4, 2023

@aome510
Copy link
Owner Author

aome510 commented Mar 4, 2023

@slikie I never have a trouble with scrapping lyric from genius.com. Which command did you use to run the example? I use

cargo run --example lyric-finder -- 'run taylor swift'

I'm not familiar with the "aggressive cloudflare captcha policy" you're referring to.

@slikie
Copy link

slikie commented Mar 4, 2023

same as in the log -
30:2023-03-04T12:08:13.305693Z ERROR client_request{request=GetLyric { track: "Kill V. Maim", artists: "Grimes" }}: spotify_player::client::handlers: Failed to handle client request: failed to get lyric for track Kill V. Maim - artists Grimes: error decoding response body: expected value at line 1 column 1: expected value at line 1 column 1

I have given up using genius with this popping up all the time. image

curling genius.com having similar result.


api.genius.com endpoint seems to not have cloudflare captcha, but will requires different api as well as an access token

@aome510
Copy link
Owner Author

aome510 commented Mar 4, 2023

I see what you mean. Will take a look into the other solution you send. Can you create an issue for tracking?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants