Skip to main content

investpy — a Python package for historical data extraction from the spanish stock market

Project description

Investing Scraper of historical data from continuous spanish stock market

Python Version PyPi Version Build Status

Introduction

Since Investing does not have an API, I decided to develop this Python scraper in order to retrieve historical data from the companies that integrate the Continuous Spanish Stock Market. The scraper is a Python package everyone can use through PyPi (Python Package Installer) via investpy.

The main purpose of developing this package was to use it as the Data Extraction tool for its namesake section, for my Final Degree Project at the University of Salamanca titled "Machine Learning for stock investment recommendation systems". The package end up being so consistent, reliable and usable that it is going to be used as the main Data Extraction tool by another students in their Final Degree Projects named "Recommender system of banking products" and "Robo-Advisor Application".

To conclude this section, I am in the need to specify that this is not the final version of the package, this is just a beta version of it that will keep going while I develop a consistent Python package for financial data extraction.

Installation

In order to get this package working you will need to install investpy from PyPi via Terminal typing:

pip install investpy==0.8.3

All the dependencies are already listed on the setup file of the package, but to sum them up, you will need the following requirements:

Release Notes 0.8.3

  • Several fixes on minor bugs/errors
  • Added support for Python 3.5
  • Updated window size when data retrieval interval is above 20 years
  • JSON structured to work better when plotting it
  • docstring updated and "Use" section removed from package documentation
  • Setup of some changes for future releases
  • Handled errors such as input error return values or input dates format

Additional Information

The package is currently in a development version, so please, if needed open an issues to solve all the possible problems the package may be causing so I fix them as fast as I can. Also, any new ideas or proposals are welcome, and I will gladly implement them in the package if the are positive and useful.

For further information or any question feel free to contact me via email at alvarob96@usal.es

You can also check my Medium Publication, where I upload weekly posts related to Data Science and some of them explain investpy functions and development in a deeper way.

Disclaimer

This Python Package has been made for research purposes in order to fit a needs that Investing.com does not cover, so this package works like an Application Programming Interface (API) of Investing.com developed in an altruistic way. Conclude that this package is not related in any way with Investing.com or any dependant company, the only requirement for developing this package was to mention the source where data is retrieved.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

investpy-0.8.3.tar.gz (22.8 kB view details)

Uploaded Source

File details

Details for the file investpy-0.8.3.tar.gz.

File metadata

  • Download URL: investpy-0.8.3.tar.gz
  • Upload date:
  • Size: 22.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for investpy-0.8.3.tar.gz
Algorithm Hash digest
SHA256 0fed8ade8e4f9a384fdb16ca285d99623c243a428f1432eb79d468b4977d0e85
MD5 a032ba21a0581aedaf8b6287a4b1722a
BLAKE2b-256 27b2dfd599ac575d8e50a5649a53e363bf73c79c7b02490e655de5282efafb0b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page