How can i get table heading and Data #78

Closed
opened 2025-10-14 18:07:09 -06:00 by navan · 0 comments
Owner

Originally created by @sklyerking on 1/2/2019

x('https://en.wikipedia.org/wiki/List_of_Prime_Ministers_of_India', {
title: 'title',
items: x('.wikitable tr', [{
title: 'th'
}])
})(function(err, obj) {
console.log(obj);
})

Current Output :
{ title: 'List of Prime Ministers of India - Wikipedia', items: [ { title: '№\n' }, { title: '1\n' }, { title: '–\n' }, { title: '2\n' }, { title: '–\n' }, { title: '3\n' }, { title: '4\n' }, { title: '5\n' }, { title: '(3)\n' }, { title: '6\n' }, { title: '7\n' }, { title: '8\n' }, { title: '9\n' }, { title: '10\n' }, { title: '11\n' }, { title: '12\n' }, { title: '(10)\n' }, { title: '13\n' }, { title: '14\n' } ] }

*Originally created by @sklyerking on 1/2/2019* x('https://en.wikipedia.org/wiki/List_of_Prime_Ministers_of_India', { title: 'title', items: x('.wikitable tr', [{ title: 'th' }]) })(function(err, obj) { console.log(obj); }) **Current Output :** { title: 'List of Prime Ministers of India - Wikipedia', items: [ { title: '№\n' }, { title: '1\n' }, { title: '–\n' }, { title: '2\n' }, { title: '–\n' }, { title: '3\n' }, { title: '4\n' }, { title: '5\n' }, { title: '(3)\n' }, { title: '6\n' }, { title: '7\n' }, { title: '8\n' }, { title: '9\n' }, { title: '10\n' }, { title: '11\n' }, { title: '12\n' }, { title: '(10)\n' }, { title: '13\n' }, { title: '14\n' } ] }
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github/x-ray#78
No description provided.