-
-
Save tammyta/3f4331fc8733e65224d5 to your computer and use it in GitHub Desktop.
Problem i have scraping with x-ray / x-ray-phantom
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var phantom = require('x-ray-phantom'); | |
var Xray = require('x-ray'); | |
var x = Xray() | |
.driver(phantom()); | |
x('https://empeopled.com/t/empeopled_news', '.topic-content', [{ | |
title: '.post-title', | |
link: '.post-link@href', | |
}]).write('results.json') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "empscraper", | |
"version": "1.0.0", | |
"description": "Bot scrapping empeopled", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"author": "tammyta", | |
"dependencies": { | |
"x-ray": "^2.0.2", | |
"x-ray-phantom": "^1.0.1" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment