FEAT: Lyrics Web Scraping functionality as alternative to hard-coded#26
Open
Grok42 wants to merge 1 commit into
Open
FEAT: Lyrics Web Scraping functionality as alternative to hard-coded#26Grok42 wants to merge 1 commit into
Grok42 wants to merge 1 commit into
Conversation
Author
|
Additional note: Though "re" module my be built in to base Python install, not sure. Pretty sure other two need installed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
FEAT: Added Lyrics Web Scraping functionality as alternative to hard-coded.
Hi James, the Rick Roll (Lyrics to File) function in main/tools.py gave me a chuckle so I thought I'd add something. Not sure if this repo is WIP or a leftover from a previous semester. Might get some mileage out of the modules I imported for future classes though.
I already had most of the script edits written since I've been using similar do web scrap DeviantArt pages and archive my web-based Poetry/Lit hobbycraft submissions to file. Dread eventually losing access to DeviantArt and the 350+ Literature submissions I've made. Need to get offline copies zipped up. DevArt is a big site though so not worried overly much about it going under.
Basically, just copied/edited existing script and then copy/pasted lyrics into a DeviantArt Lit Submission.
The new tools.py script is web-scrapping that. You can find it at this URL below (and in the code)...
Never-Gonna-Give-You-Up
I do have my DeviantArt credentials stored on my PCs browers but the script addition works from console. Haven't tested it on a PC that has never signed in to Deviant Art. So if Deviant Art stores some kind of device authentication on their servers and uses that, the script may not pull (curl) everything it needs. Let me know if there are issues. I'll give it a go on my PC downstairs (never logged in to DA) later.
Looking forward to our Zoom.
Best Regards,
John Hampton