0.0.12 • Published 6 years ago

scrap-dans-tes-mains v0.0.12

Weekly downloads
7
License
MIT
Repository
-
Last release
6 years ago

scrap-dans-tes-mains

npm version

Install

  1. Yarn is a promising node package manager. We recommend to use it. So first make sure you have a global version of it (https://yarnpkg.com/en/docs/install).

  2. Install the node_modules with

      yarn
  3. Symlink the 'scrap' binary command

      yarn symlink

Run locally

  1. Launch just once a watcher that will transpile your babel src files into vanilla javascript lib files anytime you do change in your src scrapper files.

      yarn dev
  2. You can execute a scrap run with the following command, for example

      scrap --url=https://www.washingtonpost.com/world/national-security/american-strikes-against-syria-prompt-both-praise-and-condemnation/2017/04/07/df58e194-1bb1-11e7-855e-4824bbb5d748_story.html?hpid=hp_hp-top-table-main_ussyria-820pm%3Ahomepage%2Fstory&utm_term=.1d9f998edc55

    Or run directly the node scripts/scrap.js file.

Add a new scrapper

  1. Follow the example given with src/www_washingtonpost_com.js, and create your own

  2. Don't forget to add a test file in the test folder, and run the test !

      yarn test
0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.1

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago