Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-03-2012, 09:10 AM   PM User | #1
manzoor ahmad
New to the CF scene

 
Join Date: Oct 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
manzoor ahmad is an unknown quantity at this point
Scraping

Hello every one,
I am using PHP Scraping to get the page html. but there is a problem that the page is loaded through ajax that takes some time to load.The file_get_html() get the html before the file is loaded.what i can do to solve this problem.


Please help me to solve this problem .
manzoor ahmad is offline   Reply With Quote
Old 10-03-2012, 02:59 PM   PM User | #2
Fou-Lu
God Emperor


 
Fou-Lu's Avatar
 
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Posts: 15,662
Thanks: 4
Thanked 2,452 Times in 2,421 Posts
Fou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to all
You would write an javascript parser.
PHP only cares about data. By scraping the page you get the html data, you need to write a way to parse the javascript to do what you want. If the link itself relies on JS to load it, then your only option is to parse it if you want to do something with it. I guarantee that it will not be fun to rewrite a javascript parser.
Fou-Lu is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:15 AM.


Advertisement
Log in to turn off these ads.