A simple script to scrape fundamental ratios from Finviz.com. This basic code can be tailored to suit your application.
The function should produce the following:
Very simple adaptable code, allowing you to spend more time analyzing the data and less time aggregating it.