Skip to content

Code from talk for rust Vancouver meetup on Oct 19, 2022

Notifications You must be signed in to change notification settings

spdrman/rust-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YOUTUBE LINK TO WORKSHOP VIDEO FOR PART 1 BELOW:

https://youtu.be/oZa6UY9gzLw


PART 1

Connect to soma.fm: https://somafm.com/groovesalad/songhistory.html

Pull in the song history

Store song history

  • Played At (Don't need it -- need to parse out text from time HH:MM
  • Artist
  • Song
  • Album
  • Some rows are "HH:MM Break / Station ID"

PART 2:

YOUR HOMEWORK:

For each song in the playlist datastructure

Search youtube for music video based on "artist" + "song"

https://www.youtube.com/results?search_query=Groove+Matter+%2B+97+Ways

Take the result of each loop iteration, pick the first item in the result, and store it in a YPlaylistItem struct

Your end result should be a vector of YPlaylistItem structs.

See tests in the youtube.rs spider for examples of some code that will help, and also the additional instructions in the comment at the top of that file.

WARNING!!! ATTENTION!!! Do the above behind a VPN, and implement a time delay between each call to Youtube (use 10sec delay to be safe)

Submit your solution to PART 2 as a PR to this repo

About

Code from talk for rust Vancouver meetup on Oct 19, 2022

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages