Financial web scraping - Work In Progress
Objective of this project is to webscrap financial data and provide API deployed in the cloud to access the data.
Install the package (from test pypi):
pip install --index-url https://test.pypi.org/simple/ finscrap
Redirect output to csv file:
python3 -m finscrap --csv output.csv funds.json
Note: --csv
option has shorter equivalent: -c
Redirect output to DynamoDB table called: Table1:
python3 -m finscrap --dynamodb Table1 funds.json
Note: --dynamodb
option has shorter equivalent: -d
. Make sure your runtime
environment has correct AWS credentials
configuration.
To get more help use: python3 -m finscrap --help
When working on this project, you can look at examples
folder to create
example DynamoDB table, put or get sample data.
Run pre-commit install
initially!
pre-commit run -a
- run pre-commit checks on all filesmake test
- run unit tests and display coverage reportmake e2e-csv
- run end to end tests with csv optionmake
- run setup, lint, test and clean jobs
Review examples folder with docker lambda and dependencies implementation.
TODO: consider moving lambda example implementation and AWS infrastructure deployment to separate repository.