garysieling/adsense-scraper

Example doesn't work

Opened this issue · 1 comments

I'm not sure if they changed this since your article, but the code doesn't work. The iframe contents is not available to scrape via JavaScript. In your example, you have the following:

document.querySelectorAll('#googleAdSenseLeft ul li a');

This returns an empty array.

When using the console, I try the following:

document.querySelectorAll('#googleAdSenseLeft iframe html');

It returns an empty array as well.

I tried this in Safari, Chrome and Firefox.

Any thoughts on how to overcome this?

Eric

Yup bro @cavneb it is not working fine ... i tried with different classes also but still it is not