https://github.com/tennisonchan/cat-claws
A cat's best tool for scraping any furnitures 🐱
https://github.com/tennisonchan/cat-claws
cats node-module nodejs scraper scraping scraping-websites scrapping
Last synced: about 2 months ago
JSON representation
A cat's best tool for scraping any furnitures 🐱
- Host: GitHub
- URL: https://github.com/tennisonchan/cat-claws
- Owner: tennisonchan
- License: mit
- Created: 2017-10-06T17:49:09.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-07T08:54:25.000Z (over 8 years ago)
- Last Synced: 2025-10-11T03:59:22.715Z (8 months ago)
- Topics: cats, node-module, nodejs, scraper, scraping, scraping-websites, scrapping
- Language: JavaScript
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Cat Claws :paw_prints:
Cat's claws for scraping any furnitures :cat:
[](https://www.npmjs.com/package/cat-claws)
[](https://travis-ci.org/tennisonchan/cat-claws) 

### Installation
```
npm install --save cat-claws
```
### Examples
```
const claws = require('cat-claws');
claws('https://www.nytimes.com/', {
stories: ['.story.theme-summary',
{
storyHeading: '.story-heading a',
url: function ($el) {
return $el.find('[href]').attr('href');
},
summary: '.summary'
}
]
}).then(json => {
console.log(json);
// {
// stories: [{
// storyHeading: 'The Breaking Cat News!',
// url: 'https://www.huffingtonpost.com/topic/funny-cats',
// summary: 'I smelled something funny when I was getting ready for work one day. I followed the smell to the kitchen, where I found that my cat had turned...'
// }, {
// ...
// }]
// }
});
```