I am making a string parser that will parse the string from the data gotten from json and get the quotes from it, but it seems like a big waste of time if there was a way to just get the quotes from the api. I have looked on the documentation and found nothing on just getting the quotes, but if you guys have any insight that would really help me out. Thanks.
1 Like
Unfortunately, there isn’t, however, if you stick to people and a certain section, the parsing not as difficult as you’d think.
Here’s my unstyled Random Quote Generator. It uses the Wikiquote API.
Essentially, you can save the HTML text response to a variable and parse it with a DOM parser
Hope this could give you some ideas
1 Like