Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kahwee/scraping
https://github.com/kahwee/scraping
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/kahwee/scraping
- Owner: kahwee
- Created: 2016-05-27T22:27:52.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-05-29T15:03:53.000Z (over 7 years ago)
- Last Synced: 2024-12-01T18:35:44.364Z (2 months ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# scraping
From this [DigitalOcean tutorial](https://www.digitalocean.com/community/tutorials/how-to-use-node-js-request-and-cheerio-to-set-up-simple-web-scraping).
## Installing
```sh
git clone [email protected]:kahwee/scraping.git
cd scrapping
npm i
```## Running
```sh
node index.js
```This is the expected output
```sh
scraping ❯ node index.js
[ { rank: 1,
title: 'All European scientific publicly funded articles to be freely accessible by 2020',
url: 'http://english.eu2016.nl/latest/news/2016/05/27/all-european-scientific-articles-to-be-freely-accessible-by-2020',
points: 594,
username: 'whazor',
comments: 5 },
{ rank: 2,
title: 'Experts say Olympics must be moved or postponed because of Zika',
url: 'https://www.washingtonpost.com/news/to-your-health/wp/2016/05/27/125-experts-say-olympics-must-be-moved-or-postponed-because-of-zika/', points: 135,
username: 'graeme',
comments: 2 },
...
]
```