IonicaBizau / scrape-it

🔮 A Node.js scraper for humans.

Home Page:http://ionicabizau.net/blog/30-how-to-write-a-web-scraper-in-node-js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Doesn't return tag script attribute value

renanbessa opened this issue · comments

I'm trying to get the value of the data-ad-client attribute inside the script tag, but it's always null. Am I doing right?

adsense: {
          selector: 'script',
          attr: 'data-ad-client',
        },

Can you please share a full example code? Make sure the script is present in the HTML.