- Estrazione dei dati da Amazon

- Ciclo di Estrapolazione di tutti i prodotti ed aggiornamento dei campi scraped e scraped_updated
- Creazione file CSV con i campi modificati.
This commit is contained in:
Surya Paolo
2025-05-19 17:33:58 +02:00
parent a374a7d7bc
commit a3c7b92c0c
16 changed files with 5131 additions and 1731 deletions

View File

@@ -241,6 +241,12 @@ const productSchema = new Schema({
scraped: {
type: Boolean,
},
scraped_error: {
type: Boolean,
},
scraped_updated: {
type: Boolean,
},
scraped_date: {
type: Date,
},
@@ -476,7 +482,7 @@ module.exports.findAllIdApp = async function (idapp, code, id, all, isbn) {
if (idapp) {
myfind = {
idapp,
$or: [{ delete: { $exists: false } }, { delete: false }],
$or: [{ deleted: { $exists: false } }, { deleted: { $exists: true, $eq: false } }],
};
}

View File

@@ -183,13 +183,6 @@ const productInfoSchema = new Schema({
sottotitolo: String,
link_macro: String,
scraped: {
type: Boolean,
},
scraped_date: {
type: Date,
},
});
var productInfo = module.exports = mongoose.model('ProductInfo', productInfoSchema);