You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to scrape a list in a site that leads to other pages that has the same formatting.
I was able to create a collection of all the a tags, but when I try to visit a collection of pages, the key I try to create with it doesn't get added in my returned object.
Your environment
Node: v6.5.0
NPM: 3.5.3
Steps to reproduce
var Xray = require('x-ray');
var x = Xray();
x('http://stackoverflow.com/', {
title: x(['a@href'], 'title'),
}) (function(err, obj) {
console.log(obj);
});
Expected behaviour
I expected I would get an object with the title of all the link, something like: { title: [title1, title2, title3, etc] }
Actual behaviour
Instead I get {}
The text was updated successfully, but these errors were encountered:
Subject of the issue
I'm trying to scrape a list in a site that leads to other pages that has the same formatting.
I was able to create a collection of all the a tags, but when I try to visit a collection of pages, the key I try to create with it doesn't get added in my returned object.
Your environment
Node: v6.5.0
NPM: 3.5.3
Steps to reproduce
Expected behaviour
I expected I would get an object with the title of all the link, something like:
{ title: [title1, title2, title3, etc] }
Actual behaviour
Instead I get
{}
The text was updated successfully, but these errors were encountered: