garysieling / garysieling/adsense-scraper

Example doesn't work

Open
#1 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
12
Forks
8
PR merge metrics
No merged PRs in 30d

Description

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:

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

This returns an empty array.

When using the console, I try the following:

``` javascript
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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.