Skip to content

After 8 posts it says no more posts found. #31

@YokoNat

Description

@YokoNat

Liking post 8...
Post 8 liked.
Caption for post 8: Tuscan Travertine is the perfect choice to add warmth to any space. 🤩💛⁠

Expanding caption for post 8...
Expanded Caption for post 8: Tuscan Travertine is the perfect choice to add warmth to any space. 🤩�⁠⁠

@buildhhercollective ⁠

Featured stone - Tuscan Travertine ⁠

Click the link in our bio to discover more about our Travertine range...⁠

⁠#designer #style #interiordesigner #design #luxuryarchitecture #archdaily #architecturelovers #interiorstyling #homedecor #interiors #archidaily #homedesign #instahome #architecture #architectureanddesign #construction #rmstraders #thehomeofstone #naturalstone
Waiting 5.687 seconds before moving to the next post...
Like button not found for post 9.
No caption found for post 9.
Waiting 6.68 seconds before moving to the next post...
Like button not found for post 10.
No caption found for post 10.
Waiting 7.927 seconds before moving to the next post...
Like button not found for post 11.
No caption found for post 11.
Waiting 9.777 seconds before moving to the next post...
Like button not found for post 12.
No caption found for post 12.
Waiting 6.382 seconds before moving to the next post...

This is after I removed these lines:
// Check if the post exists
if (!(await page.$(postSelector))) {
console.log("No more posts found. Exiting loop...");
break;
}

For some reason, after 8 posts it stops detecting posts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions