Share your repls and programming experiences

← Back to all posts
Randowiki - Random wikipedia articles
heyitsmarcus (342)

Press the spacebar and you'll get a random word to be looked up on Wikipedia and then see which article is chosen based on that word! And then, every 5 seconds, a new word is chosen and a new article unleashed!

Any articles that have images should have an image in the app.

A quick demo:

mat1 (4380)

Fun fact: You can get a random list of Wikipedia articles with only their api

heyitsmarcus (342)

@mat1 That is just a json response, and I'm doing more than just presenting a JSON response, since I'm presenting random articles based on random words and if those articles have images, the images are shown, too. I just thought it was a fun, little project.

mat1 (4380)

@heyitsmarcus Yes, but you can get the random article's names instead of using random words

heyitsmarcus (342)

@mat1 Sure, except I wanted to use random words and a query response, and that's what I did on MY challenge. I don't expect to win at all. I wanted to do something fun, and this was fun for me. Now shoo, go bother someone else.

jajoosam (877)

I love this marcus, it's really cool! I got some funny and unexpected results since it picks randomly out of 10 😂

Also, I didn't know wikipedia had a JSON api - I've always been scraping 😅

heyitsmarcus (342)

@jajoosam Wow, I appreciate that! I had to take certain words out of there when I made the list because I didn't even realize that there were NSFW entries in Wikipedia XD

Oh yea, if you visit the base link: They have a few different versions of their API and there are tons of customization options. They even have an API Sandbox where you can play around with the various query parameters and see the results in an easy to use format. I thought it was really nifty!