動画検索
関連広告
検索結果
Introducing today's topic: a Wikipedia web crawler
Add an input box to the html
Handle the user input event
The Wikipedia search URL
Use loadJSON to request a page
Pick a random article title
Use a regular expression to replace the white space
Retrieve the content using the content URL
Look at the json file with the Chrome extension Json formatter
Use the key to get the page Id
Use a regular expression to get the words on a page
Use a random word to crawl a bunch of random articles
Add an exit condition
Conclusion
Intro
Get to know the project
Extract main elements
Create helper functions
Exploring the API docs and defining our params
Register event listeners
Fetch the data per user's input
Using Axios
Using Async Await
First successful API call
Try...catch block
The cool unknown part of the try...catch block
Prepare the data for the UI
End result and some touch ups
Recap