/    Sign up×
Community /Pin to ProfileBookmark

Curl – Grabbing Elements By Id?

Is it possible to just grab a web page by an html id? If so how?

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@bonbondudeMar 30.2011 — first thing, always post your question with full possible and required details. anyways u want to grab the content of whole web page, or its address, or some content or what... ?? and what do u actually mean by *html id*"??
Copy linkTweet thisAlerts:
@NogDogMar 30.2011 — You would grab the whole web page HTML via cURL, then supply that to populate a DOM object, which you could then use the getElementByID() method to extract the desired element.
Copy linkTweet thisAlerts:
@xixtyxixauthorApr 01.2011 — You would grab the whole web page HTML via cURL, then supply that to populate a DOM object, which you could then use the getElementByID() method to extract the desired element.[/QUOTE]

k thanks
×

Success!

Help @xixtyxix 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.4,
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,
)...