I am working on the “Random Quote Machine” that uses an API to pull random quotes using AJAX and JSON. I wanted to try and go above and beyond that by scraping all the quotes from this site: https://www.brainyquote.com/quotes/keywords/deep.html
I noticed while looking through the console that all the quotes are in separate divs with either titles of “view quote” or “view author” as well as classes with the format “b-qt qt_xxxxxx” where xxxxxx = random 6 digits.
Now I haven’t had much experience using GET requests or any back-end at all but I figure this could be a good stepping stone in understanding how to get data from a website and then parse it so I can use it for my gain.
Can anyone offer any insight in how I can achieve pulling the quote text and the author of at least 100 quotes if not more? What kind of problems could I encounter?
Thanks so much!