Avatar of LeighWardle
LeighWardle
Flag for Australia asked on

WordPress page - retrieve text from a page on another site

Hi Experts,


How can I have a WordPress page retrieve text from a page on another site?

Sorry if this question is too vague - I'm just trying to plan something new.

Regards,

Leigh
WordPress

Avatar of undefined
Last Comment
David Favor

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Kimputer

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
David Favor

This depends on many factors, primarily.

1) Why your doing this. In other words, how the content pulled from an external site will be used.

2) Type of external site. If the external site uses Javascript, then you must use a Javascript aware scraper.

3) Another question will be if this site provides an API to extract data. If not, most sites note in the TOS (terms of service) scraping is disallowed, then if they're scraped repeatedly, almost surely have countermeasures built in to track + block (sometimes forever) any IP scraping their site.

4) Another option is to <iframe> in the content, in which case you'll be blocked by browser security modifying any of the content.

Answer these 3x questions, then provided the URL of the page to be scraped + likely you'll have many suggestions.
LeighWardle

ASKER
Thanks, Kimputer and David.

That's got me started.

Regards,
Leigh
David Favor

You're welcome!

Good luck!

If you'd like additional comments, answer the questions above.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23