aboutsummaryrefslogtreecommitdiff
path: root/scrape.js
blob: 17d61697c56e10f0d18b5ffa84ea52f741df2898 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
const https = require("https");

async function urlOpen(path)
{
	return new Promise(resolve =>
	{
		let req = https.get(path, res =>
		{
			res.on("data", resolve);
		});
		req.on("error", e =>
		{
			console.error(e);
		});
		req.end();
	});
}