Skip to content

Commit

Permalink
update version
Browse files Browse the repository at this point in the history
  • Loading branch information
lit26 committed Mar 2, 2022
1 parent f5998ce commit 848d82b
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 7 deletions.
Binary file added __pycache__/runtest.cpython-37-pytest-6.2.2.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
author = 'Tianning Li'

# The full version, including alpha/beta/rc tags
release = '0.11.1'
release = '0.12.0'


# -- General configuration ---------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion finvizfinance/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
.. moduleauthor:: Tianning Li <[email protected]>
"""

__version__ = "0.11.0"
__version__ = "0.12.0"
__author__ = "Tianning Li"
2 changes: 1 addition & 1 deletion finvizfinance/screener/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def screener_view(
else:
progress_bar(1, 1)

table = soup.findAll("table")[18]
table = soup.findAll("table")[19]
rows = table.findAll("tr")
table_header = [i.text for i in rows[0].findAll("td")][1:]
num_col_index = [table_header.index(i) for i in table_header if i in NUMBER_COL]
Expand Down
4 changes: 2 additions & 2 deletions finvizfinance/screener/overview.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def set_filter(self, signal="", filters_dict={}, ticker=""):

def _get_page(self, soup):
"""Check the page number"""
options = soup.findAll("table")[17].findAll("option")
options = soup.find(id="pageSelect").findAll("option")
return len(options)

def _get_table(self, rows, df, num_col_index, table_header, limit=-1):
Expand Down Expand Up @@ -254,7 +254,7 @@ def screener_view(
else:
progress_bar(1, 1)

table = soup.findAll("table")[18]
table = soup.findAll("table")[19]
rows = table.findAll("tr")
table_header = [i.text for i in rows[0].findAll("td")][1:]
num_col_index = [table_header.index(i) for i in table_header if i in NUMBER_COL]
Expand Down
2 changes: 1 addition & 1 deletion finvizfinance/screener/ticker.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def __init__(self):
Overview._load_setting(self)

def _screener_helper(self, i, page, soup, tickers, limit):
table = soup.findAll("table")[18]
table = soup.findAll("table")[19]
page_tickers = table.findAll("span")
if i == page - 1:
page_tickers = page_tickers[: ((limit - 1) % 1000 + 1)]
Expand Down
1 change: 1 addition & 0 deletions release.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
| Date | Version | Comment |
| ------------- | ------------- | ------------- |
| 2022/05/02 | 0.12.0 | Update changes in stock screener. Issue: https://github.com/lit26/finvizfinance/issues/41|
| 2021/12/30 | 0.11.1 | Update changes in stock fundamental. Issue: https://github.com/lit26/finvizfinance/issues/38. PR: https://github.com/lit26/finvizfinance/pull/37 |
| 2021/12/11 | 0.11 | Reformat the code to follow PEP 8 style guide. |
| 2021/10/14 | 0.10.1 | Add pagination to the screener. https://github.com/lit26/finvizfinance/issues/29 |
Expand Down
6 changes: 6 additions & 0 deletions requirements-doc.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
-r requirements.txt

# doc
Sphinx==2.2.1
sphinx-rtd-theme==0.4.3
docutils==0.17.1
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

HERE = pathlib.Path(__file__).parent

VERSION = '0.11.1'
VERSION = '0.12.0'
PACKAGE_NAME = 'finvizfinance'
AUTHOR = 'Tianning Li'
AUTHOR_EMAIL = '[email protected]'
Expand Down
Binary file added tsla.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 848d82b

Please sign in to comment.