Jump to content

cURL, Screenshot, URL Tracking, Mochigames


digitalpurpose

Recommended Posts

Hello Everyone,

 

My first post here, glad to find this community, down to business:

 

What I am trying to do regards the website mochigames.com. Whenever you load up one of their flash games, there is an advertisement that displays as an overlay before it launches.

 

I'd like to be able to screenshot the area of the browser that contains the game (a 640 x 480 div), and then click-through the ad and keep track of the URL(s) until the final advertisement URL is reached.

 

Some ads go straight to the ad page when you click, while others redirect the URL a couple times before arriving at the final destination URL.

 

So basically, I want to supply cURL with the URLs for various games, and get the script to create a respectable screenshot, and record the URL(s) to the destination advertisement.

 

Any ideas? Pretty new to cURL.

 

Thanks for any assistance in advance!

Link to comment
https://forums.phpfreaks.com/topic/272877-curl-screenshot-url-tracking-mochigames/
Share on other sites

cURL isn't designed to render HTML, only mimic browser traffic and transfer data.

 

http://php.net/manual/en/function.imagegrabscreen.php is probably the closest you are going to get with PHP

(someone might have another method I might not know about)

 

This is an example of how this could be used

(although I was never able to successfully gain this functionality; got close once but never rendered the page):

http://stackoverflow.com/questions/757675/website-screenshots-using-php

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.