Skip to content

Commit

Permalink
Update article scraping messages
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvNC committed Feb 12, 2024
1 parent 27f37f4 commit 031e5ca
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ async function scrapeAll() {
const totalArticles = await prisma.pixivArticle.count();
console.log(`Total articles: ${totalArticles}`);

console.log('Scraping article readings');
console.log('Scraping single articles');
await scrapeAllIndividualArticles();
console.log('Scraping of article readings complete');
const totalArticlesWithReading = await getArticlesScrapedCount();
console.log(`Total articles scraped: ${totalArticlesWithReading}`);
console.log('Scraping of articles complete!');
const individualArticlesScraped = await getArticlesScrapedCount();
console.log(`Total articles scraped: ${individualArticlesScraped}`);
console.log(
`Scraped ${totalArticlesWithReading - initialReadingsCount} new articles`,
`Scraped ${individualArticlesScraped - initialReadingsCount} new articles`,
);

return totalArticles;
Expand Down

0 comments on commit 031e5ca

Please sign in to comment.