Can I use "request" and "cheerio" libraries to extract data from a .html file? : <p>I'm creating a React Web Application and using request and cheerio to do some Web Scrapping. I need to extract data from a .html file. The user enters with a .html in an input:</p>

<pre><code>&lt;input type='file' /&gt;
</code></pre>

<p>How can I extract data from the file? It is possible with those libraries?
I know that request needs an <code>url</code> and I guess that it will be the local path to file. I used the following code to do Web Scrapping:</p>

<pre><code>const foo = await new Promise(function (resolve, reject) {
    request.get(url, (err, res2, data) =&gt; {
        const $ = cheerio.load(data)
        let s = $("tbody &lt; table.table_lt").text().replace(/\t/g, '').replace(/\n/g, '')
        resolve(s)
    })  
})
</code></pre>

<p>But this work just with Web.</p>
