npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@finscrapers/finscrapers

v1.0.4

Published

Invest like Warren Buffet.

Downloads

12

Readme

finscrapers Build Status

Finscrapers is a Node-based CLI that helps investors to scrape data from websites with Puppeteer. That is how private investors can take sophisticated decisions based on facts, instead of solely gut instincts. Without paying thousands of dollars for a Bloomberg Terminal. Instead Finscrapers will collect data from a financial website and save them to Elasticsearch to display them in any report, or dashboard. The best is, it's free and open source!

Currently supported financial sources:

Installation

Add Finscrapers as global package.

npm install -g @finscrapers/finscrapers

Usage

1. See --help

Run the script with Node and you will see flags listed below.

finscrapers --help`

| Flag | Required | Description | Example | | ------------------- | ------------------------------- | ----------------------------------------------------------------------- | --------------------------------- | | --elasticsearch, -e | yes | Path to Elasticsearch host, default is http://localhost:9200 | https://myelasticsearchserver.com | | --symbols, -s | no (defaults to ./symbols.json) | Relative path of the files with the symbols to scrape | ~/symbols.json | | --headless, -h | no | Runs Puppeteer in headless mode (you will not see the browser) | | | --slowMo, -m | no (defaults to 300) | Slows down Puppeteer operations by the specified amount of milliseconds | 1000 |

2. Start Elasticsearch server

Take the manual installation route with Elasticsearch Reference, easier, but more costly, subscribe Elasticsearch Service or AWS Elasticsearch Service.

3. Configure symbols.json

A file containing the symbols needs to be created before executing the script. Let's create a file called symbols.json:

{
  "symbols": ["IBM", "MSFT", "FB", "AMZN"]
}

4. Run Finscrapers:

finscrapers -e https://myelasticsearchserver.com -s symbols.json

5. Run Kibana:

You need to install Kibana, as mentioned in the section Start Elasticsearch server, investigate the data, and finally invest like Warren Buffet. If you get rich, don't forget to buy us a coffee.

Legal disclaimer

We are not affiliated with Oath (EMEA) Limited. Please make yourself familiar with Yahoo Terms before using finscrapers-cli.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT