title: Using node-fetch to retrieve data from a specified site
body: <p>I'm writing my first bot for Discord and I want it to do something that comes with some apparent complications.</p>
  
  <p>I want to query a website when the bot is given a command then retrieve data by class name, then interpret the node for output. 
  I believe I can do this using a combination of node-fetch, this code:</p>
  
  <pre><code>var matches = document.querySelectorAll("h4.db-item__list__name, p.db-item__list__material");
  </code></pre>
  
  <p>and then an array interpretation. for ease, this is the webpage I'm testing on: </p>
  
  <p><a href="https://eu.finalfantasyxiv.com/lodestone/playguide/db/recipe/2c299ec29ce/" rel="nofollow noreferrer">https://eu.finalfantasyxiv.com/lodestone/playguide/db/recipe/2c299ec29ce/</a></p>
  
  <p>Example: node-fetch connects to the webpage, finds the materials required to make this item, prints the materials in a node which is then interpreted as an array, then I can use a line to echo this into the console.</p>
  
  <p>Is this a possibility, or am I creating a big headache for myself that in the long run only works 10% of the time (been there before). Also am I in the right ball park already if this is possible? I'm not looking for someone to code this for me, I just want to make sure I'm not going to waste hours on this before I get too deep.</p>