/    Sign up×
Community /Pin to ProfileBookmark

Which Php, cURL Php Function Scrolls To Bottom Of Page When Fetching Pages ?

Folks,

Look at this youtube serp:
https://www.youtube.com/results?search_query=make+money+online+in+2022
You are shown 10 search results.
Now, if you want to see more results, you got to scroll to the bottom of the page and only then more search results would be presented. Otherwise not.
Q1.
My question is, what php function or javascript function youtube is using here to feed you new search results like this ?

Q2.
With php or cURL php, how would you load the page on your screen and get php/cURL php to scroll to the bottom of the page for more results to be presented ?
Which php functions would you use here to do this ?
And, which php cURL functions would you use here to do this ?
I need to know the functions names to further look into them on the php.net manual. Do not know where to start unless I learn the functions names first.

Yes. You have guessed it. I am trying the get php, php cURL to fetch pages (youtube search result pages) and scrape search result links youtube presents. Youtube only presents 10 links unless you scroll to the bottom of the page for more results to load. I need to teach my web agent to scroll to the bottom of the page after scraping the links on the page. And so, this thread is now opened.

to post a comment
PHP

0Be the first to comment 😎

×

Success!

Help @novice2022 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.5,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...