trying node-fetch with .default

pull/73/head
Huda Joad 2023-11-24 18:00:43 +03:00
rodzic 71516c962c
commit 29a2116293
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -1,5 +1,6 @@
const https = require('https'); // Import for webscraping (fetchContentFromURL(url) function
const axios = require('axios');
// const axios = require('axios');
const fetch = require('node-fetch').default;
// Placeholder function to fetch content from URL using a web scraping service
async function fetchContentFromURL(url) {