const axios = require('axios')
const cheerio = require('cheerio')
const path = require('path')
const parse = async () => {
const getHTML = async (url) => {
const { data } = await axios.get(url)
return cheerio.load(data)
}
const selector = await getHTML('google.com');
let links = [];
selector('.card').each((i, element) => {
links.push(selector(element).find('.card__top').attr('href'));
});
let data = [];
links.map((link) => {
const res = async() => {
const html = await getHTML(link);
return html;
};
data.push(res);
})
console.log(data)
}
parse();
this.status = cartStatus.creating;
const success = await this.$store.dispatch("cart/submit", {
fullName: this.fullName,
email: this.email,
adres: this.adres
});