-
Notifications
You must be signed in to change notification settings - Fork 381
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- extra data added to funds - updated todo list
- Loading branch information
alvarob96
committed
May 20, 2019
1 parent
8684f33
commit 73032f6
Showing
10 changed files
with
774 additions
and
550 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,9 +6,6 @@ | |
__author__ = "Alvaro Bartolome <[email protected]>" | ||
|
||
|
||
# TODO: all lower case in objects to access it via dot operator (.) | ||
# look for a proper justification of it | ||
|
||
class Data(object): | ||
""" | ||
A class used to store the historical data of an equity, fund or etf | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,13 +5,13 @@ | |
|
||
__author__ = "Alvaro Bartolome <[email protected]>" | ||
|
||
import time | ||
import json | ||
|
||
import pandas as pd | ||
import requests | ||
import json | ||
import pkg_resources | ||
import requests | ||
from lxml.html import fromstring | ||
from tqdm import tqdm | ||
|
||
from investpy import user_agent as ua | ||
|
||
|
@@ -49,7 +49,7 @@ def get_etf_names(): | |
results = list() | ||
|
||
if path_: | ||
for elements_ in path_: | ||
for elements_ in tqdm(path_, ascii=True, ncols=80): | ||
id_ = elements_.get('id').replace('pair_', '') | ||
symbol = elements_.xpath(".//td[contains(@class, 'symbol')]")[0].get('title') | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.