CodeIgniter Forums
Screen Scraping - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Screen Scraping (/showthread.php?tid=19322)



Screen Scraping - El Forum - 06-03-2009

[eluser]isaaccreative[/eluser]
Has anyone used PHP Screen Scraping to preview content from another site? Similar to Facebook's Add Link function.

I'm wondering if there is a class file I use before I start to create my own.


Screen Scraping - El Forum - 06-04-2009

[eluser]TheFuzzy0ne[/eluser]
http://ellislab.com/forums/viewthread/114338/.


Screen Scraping - El Forum - 06-04-2009

[eluser]isaaccreative[/eluser]
Thanks TheFuzzy One. I thought about looking for a snap shop solution but felt it would take too much processing on the server. So I decided to use a data scrapping like function.

Here's what I found...
Simplehtmldom


The class file reminds me Simplepie. With in a few minutes I was able to set-up a script that could extract all the images from an external website and then post them on my server. Now with a little jquery / ajax I could create something similar to Facebook's "Add Link" in the Update Status menu.


Screen Scraping - El Forum - 06-04-2009

[eluser]Dam1an[/eluser]
Thanks for the link isaaccreative, looks like it could prove to be very useful Smile