1.5.2 • Published 7 years ago

xscraper v1.5.2

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

X Scraper

Use:

Install:

npm install --save xscraper

Available methods: getWordpress, getMedium, getWiki

  • getMedium(url, file/obj param, callback)

    		var Scrapper = require('../index');

    Scrapper.getMedium("https://hackernoon.com", 0, (data) => { console.log('Your data is '+ data.length+'" long, but is yours?'); });

    console.log("hello it's me your meme");

  • getWordpress(url, pages, file/obj param, callback)

    		var Scrapper = require('../index');
    
      Scrapper.getWordpress("https://wroops.com", 20, 0, (data) => {
              console.log('Your data is '+ data.length+'" long, but is yours?');
      });
    
      console.log("hello it's me your meme");
              
  • getWiki(articleTitle, file/obj param, callback)

    		var Scrapper = require('../index');
    
      Scrapper.getWiki("https://en.wikipedia.org/wiki/Short_story", 0, (data) => {
              console.log("You got data for: "+ data[0].title);
      });
    
      console.log("hello it's me your meme");
    
      

file/obj param : setting 0 returns a object that you can use in callback function, anything other than 0 creates a json file with the retrieved list of post data.

pages: sets number of pages you want to retrive for a wordpress blog

1.5.2

7 years ago

1.5.1

7 years ago

1.5.0

7 years ago

1.4.0

7 years ago

1.3.0

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago