Skip to content

Commit 997ae16

Browse files
refactor: update console log formatting in advanced and complete agentic scraper examples to use repeat method
1 parent 6727e95 commit 997ae16

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

scrapegraph-js/examples/agenticscraper/agenticScraper_advanced_example.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const apiKey = process.env.SGAI_APIKEY;
88
*/
99
async function advancedAgenticScrapingExample() {
1010
console.log('🚀 Advanced Agentic Scraping Example');
11-
console.log('=' * 45);
11+
console.log('='.repeat(45));
1212

1313
// Example configurations for different scenarios
1414
const scenarios = [
@@ -247,7 +247,7 @@ async function monitorRequest(requestId, timeoutSeconds = 120) {
247247
*/
248248
async function errorHandlingExamples() {
249249
console.log('\n🛡️ Error Handling Examples');
250-
console.log('=' * 30);
250+
console.log('='.repeat(30));
251251

252252
const errorScenarios = [
253253
{

scrapegraph-js/examples/agenticscraper/agenticScraper_complete_example.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const apiKey = process.env.SGAI_APIKEY;
99
*/
1010
async function completeAgenticScrapingExample() {
1111
console.log('🤖 Starting Complete Agentic Scraping Example');
12-
console.log('=' * 50);
12+
console.log('='.repeat(50));
1313

1414
// Configuration
1515
const url = 'https://dashboard.scrapegraphai.com/';
@@ -78,7 +78,7 @@ async function completeAgenticScrapingExample() {
7878
*/
7979
async function ecommerceAutomationExample() {
8080
console.log('\n🛒 E-commerce Automation Example');
81-
console.log('=' * 40);
81+
console.log('='.repeat(40));
8282

8383
const url = 'https://example-shop.com';
8484
const steps = [

0 commit comments

Comments
 (0)