Hack Forums
[Delphi] Trying to extract ads from page. Chromium/TWebbrowser - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Coders Lounge (https://hackforums.net/forumdisplay.php?fid=5)
+---- Thread: [Delphi] Trying to extract ads from page. Chromium/TWebbrowser (/showthread.php?tid=4997627)



Trying to extract ads from page. Chromium/TWebbrowser - sexxihexxi - Sep 23, 2015

Hello,

Introduction:



Im trying to filter a webbpage for ads like zanox or adsense ( no i dont want to click them for profit)and get the link. If i open the page with a browser of my choice i can view the sourcecode. There i can find the link to the offer, which i would get to, if i would click the banner.



So, now when i get the sourcecode via twebbrowser control or chromium in delphi , i just get the javascript version of the ad and not the html link that is generated from the script, like in a normal webbrowser viewing sourcecode.



I should also note that the affiliate ads are within a iframe from a external domain. Could be this the problem ? if so why can i view the links with a normal webbrowser?



Hope you understand my problem. If not please write and ill try to explain it better.

If you need a example page,and some source i can provide them.



Could someone give me a tipp or help me to solve the problem and get the affiliate link?



Thanks for your time.


* - pettola86 - Oct 9, 2015

chromium for delphi project (CEF) on google code, then inject javascript inside the page when you need it uh?