Skip to content

Commit

Permalink
Updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
IonicaBizau committed Oct 26, 2017
1 parent 9cba40b commit 838c214
Show file tree
Hide file tree
Showing 4 changed files with 2,005 additions and 14 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,3 @@
*.log
node_modules
*.env
.DS_Store
package-lock.json
20 changes: 9 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
<!-- Please do not edit this file. Edit the `blah` field in the `package.json` instead. If in doubt, open an issue. -->


[![scrape-it](https://i.imgur.com/j3Z0rbN.png)](#)

# scrape-it

[![Support me on Patreon][badge_patreon]][patreon] [![Buy me a book][badge_amazon]][amazon] [![PayPal][badge_paypal_donate]][paypal-donations] [![Ask me anything](https://img.shields.io/badge/ask%20me-anything-1abc9c.svg)](https://github.com/IonicaBizau/ama) [![Travis](https://img.shields.io/travis/IonicaBizau/scrape-it.svg)](https://travis-ci.org/IonicaBizau/scrape-it/) [![Version](https://img.shields.io/npm/v/scrape-it.svg)](https://www.npmjs.com/package/scrape-it) [![Downloads](https://img.shields.io/npm/dt/scrape-it.svg)](https://www.npmjs.com/package/scrape-it)
[![Support me on Patreon][badge_patreon]][patreon] [![Buy me a book][badge_amazon]][amazon] [![PayPal][badge_paypal_donate]][paypal-donations] [![Travis](https://img.shields.io/travis/IonicaBizau/scrape-it.svg)](https://travis-ci.org/IonicaBizau/scrape-it/) [![Version](https://img.shields.io/npm/v/scrape-it.svg)](https://www.npmjs.com/package/scrape-it) [![Downloads](https://img.shields.io/npm/dt/scrape-it.svg)](https://www.npmjs.com/package/scrape-it)

> A Node.js scraper for humans.
Expand All @@ -21,22 +20,22 @@ $ npm i --save scrape-it


```js
const scrapeIt = require("scrape-it");
const scrapeIt = require("scrape-it")

// Promise interface
scrapeIt("http://ionicabizau.net", {
scrapeIt("https://ionicabizau.net", {
title: ".header h1"
, desc: ".header h2"
, avatar: {
selector: ".header img"
, attr: "src"
}
}).then(page => {
console.log(page);
});
console.log(page)
})

// Callback interface
scrapeIt("http://ionicabizau.net", {
scrapeIt("https://ionicabizau.net", {
// Fetch the articles
articles: {
listItem: ".article"
Expand Down Expand Up @@ -85,8 +84,8 @@ scrapeIt("http://ionicabizau.net", {
, attr: "src"
}
}, (err, page) => {
console.log(err || page);
});
console.log(err || page)
})
// { articles:
// [ { createdAt: Mon Mar 14 2016 00:00:00 GMT+0200 (EET),
// title: 'Pi Day, Raspberry Pi and Command Line',
Expand Down Expand Up @@ -223,7 +222,6 @@ this takes time. You can integrate and use these projects in your applications *
However, if you get some profit from this or just want to encourage me to continue creating stuff, there are few ways you can do it:

- Starring and sharing the projects you like :rocket:
- [![Buy me a book][badge_amazon]][amazon]—I love books! I will remember you after years if you buy me one. :grin: :book:
- [![PayPal][badge_paypal]][paypal-donations]—You can make one-time donations via PayPal. I'll probably buy a ~~coffee~~ tea. :tea:
- [![Support me on Patreon][badge_patreon]][patreon]—Set up a recurring monthly donation and you will get interesting news about what I'm doing (things that I don't share with everyone).
- **Bitcoin**—You can send me bitcoins at this address (or scanning the code below): `1P9BRsmazNQcuyTxEqveUsnf5CERdq35V6`
Expand All @@ -246,13 +244,13 @@ If you are using this library in one of your projects, add it in this list. :spa
- [`codementor`](https://github.com/IonicaBizau/codementor#readme)—A scraper for codementor.io.
- [`degusta-scrapper`](https://github.com/yohendry/degusta-scrapper#readme) (by yohendry hurtado)—desgusta scrapper for alexa skill
- [`do-fn`](https://github.com/selfrefactor/do-fn#readme) (by selfrefactor)—common functions used by I Learn Smarter project
- [`jishon`](https://github.com/chee/jishon#readme) (by chee)—take a search term and get json from jisho
- [`mit-ocw-scraper`](https://npmjs.com/package/mit-ocw-scraper)—MIT-OCW-Scraper
- [`mix-dl`](https://github.com/luandro/mix-dl#readme) (by Luandro)—Download youtube mix for list of artists using youtube-dl.
- [`parn`](https://github.com/dsslimshaddy/parn#readme) (by Slim Shady)—It installs hex packages in the elixir app from http://hex.pm.
- [`picarto-lib`](https://github.com/SpacemannFinn/Picarto-Lib#readme) (by Sochima Nwobia)—Basic Library to make interfacing with picarto easier
- [`proxylist`](https://github.com/selfrefactor/proxylist#readme) (by self_refactor)—Get free proxy list
- [`rs-api`](https://github.com/oalx/rs-api#readme) (by Alex Kempf)—Simple wrapper for RuneScape APIs written in node.
- [`run-fn`](https://github.com/selfrefactor/run-fn#readme) (by selfrefactor)—Run various CLI commands - linting, watching files, minify, etc.
- [`sahibinden`](https://npmjs.com/package/sahibinden) (by Cagatay Cali)—Simple sahibinden.com bot
- [`sahibindenServer`](https://npmjs.com/package/sahibindenServer) (by Cagatay Cali)—Simple sahibinden.com bot server side
- [`scrape-vinmonopolet`](https://npmjs.com/package/scrape-vinmonopolet)
Expand Down
Loading

0 comments on commit 838c214

Please sign in to comment.