d3an / finviz

Go API for Finviz
https://github.com/d3an/finviz/wiki
MIT License
20 stars 3 forks source link

Add url scraping subcommand to CLI #63

Closed d3an closed 3 years ago

d3an commented 4 years ago

Create a subcommand that accepts a FinViz url as input and returns a DataFrame (or exports to a file) the resulting scrape of that url. If the FinViz app detailed in the url is not supported, print an informative error message.

Examples:

$ finviz urlscraper https://finviz.com/quote.ashx?t=AAPL
OR 
$ finviz usr https://finviz.com/screener.ashx?v=111&f=exch_nasd&ft=4
OR (unsupported app)
$ finviz usr https://finviz.com/groups.ashx?g=industry&sg=consumerdefensive&v=210&o=name
[ERROR] Groups app not supported.