Skip to content

Commit 848d82b

Browse files
committed
update version
1 parent f5998ce commit 848d82b

10 files changed

+14
-7
lines changed
4.77 KB
Binary file not shown.

docs/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
author = 'Tianning Li'
2323

2424
# The full version, including alpha/beta/rc tags
25-
release = '0.11.1'
25+
release = '0.12.0'
2626

2727

2828
# -- General configuration ---------------------------------------------------

finvizfinance/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
.. moduleauthor:: Tianning Li <[email protected]>
66
"""
77

8-
__version__ = "0.11.0"
8+
__version__ = "0.12.0"
99
__author__ = "Tianning Li"

finvizfinance/screener/custom.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def screener_view(
182182
else:
183183
progress_bar(1, 1)
184184

185-
table = soup.findAll("table")[18]
185+
table = soup.findAll("table")[19]
186186
rows = table.findAll("tr")
187187
table_header = [i.text for i in rows[0].findAll("td")][1:]
188188
num_col_index = [table_header.index(i) for i in table_header if i in NUMBER_COL]

finvizfinance/screener/overview.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def set_filter(self, signal="", filters_dict={}, ticker=""):
162162

163163
def _get_page(self, soup):
164164
"""Check the page number"""
165-
options = soup.findAll("table")[17].findAll("option")
165+
options = soup.find(id="pageSelect").findAll("option")
166166
return len(options)
167167

168168
def _get_table(self, rows, df, num_col_index, table_header, limit=-1):
@@ -254,7 +254,7 @@ def screener_view(
254254
else:
255255
progress_bar(1, 1)
256256

257-
table = soup.findAll("table")[18]
257+
table = soup.findAll("table")[19]
258258
rows = table.findAll("tr")
259259
table_header = [i.text for i in rows[0].findAll("td")][1:]
260260
num_col_index = [table_header.index(i) for i in table_header if i in NUMBER_COL]

finvizfinance/screener/ticker.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def __init__(self):
2323
Overview._load_setting(self)
2424

2525
def _screener_helper(self, i, page, soup, tickers, limit):
26-
table = soup.findAll("table")[18]
26+
table = soup.findAll("table")[19]
2727
page_tickers = table.findAll("span")
2828
if i == page - 1:
2929
page_tickers = page_tickers[: ((limit - 1) % 1000 + 1)]

release.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
| Date | Version | Comment |
22
| ------------- | ------------- | ------------- |
3+
| 2022/05/02 | 0.12.0 | Update changes in stock screener. Issue: https://github.com/lit26/finvizfinance/issues/41|
34
| 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 |
45
| 2021/12/11 | 0.11 | Reformat the code to follow PEP 8 style guide. |
56
| 2021/10/14 | 0.10.1 | Add pagination to the screener. https://github.com/lit26/finvizfinance/issues/29 |

requirements-doc.txt

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
-r requirements.txt
2+
3+
# doc
4+
Sphinx==2.2.1
5+
sphinx-rtd-theme==0.4.3
6+
docutils==0.17.1

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
HERE = pathlib.Path(__file__).parent
55

6-
VERSION = '0.11.1'
6+
VERSION = '0.12.0'
77
PACKAGE_NAME = 'finvizfinance'
88
AUTHOR = 'Tianning Li'
99
AUTHOR_EMAIL = '[email protected]'

tsla.jpg

37.3 KB
Loading

0 commit comments

Comments
 (0)