Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: updated docs, new doc strings, and more examples.
- Loading branch information
Showing
11 changed files
with
237 additions
and
24 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Statistics Page Examples | ||
|
||
## How to get a single symbols statistics page. | ||
```python | ||
from yfs import get_statistics_page | ||
|
||
result = get_statistics_page("AAPL") | ||
print(result.json(indent=4)) | ||
``` | ||
|
||
## How to get multiple statistics pages without threads | ||
```python | ||
from yfs import get_multiple_statistics_pages | ||
|
||
search_items = ["TSLA", "GOOGLE", "appl", "aapl"] | ||
|
||
results = get_multiple_statistics_pages(search_items, with_threads=False) | ||
|
||
print(results.dataframe) | ||
``` | ||
|
||
## How to get multiple statistics pages with threads | ||
```python | ||
from yfs import get_multiple_statistics_pages | ||
|
||
search_items = ["TSLA", "GOOGLE", "appl", "aapl"] | ||
|
||
results = get_multiple_statistics_pages(search_items, with_threads=True, thread_count=5) | ||
|
||
print(results.dataframe) | ||
``` |
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Statistics Page Examples | ||
|
||
## How to get a single symbols statistics page. | ||
```python | ||
from yfs import get_statistics_page | ||
|
||
result = get_statistics_page("AAPL") | ||
print(result.json(indent=4)) | ||
``` | ||
|
||
## How to get multiple statistics pages without threads | ||
```python | ||
from yfs import get_multiple_statistics_pages | ||
|
||
search_items = ["TSLA", "GOOGLE", "appl", "aapl"] | ||
|
||
results = get_multiple_statistics_pages(search_items, with_threads=False) | ||
|
||
print(results.dataframe) | ||
``` | ||
|
||
## How to get multiple statistics pages with threads | ||
```python | ||
from yfs import get_multiple_statistics_pages | ||
|
||
search_items = ["TSLA", "GOOGLE", "appl", "aapl"] | ||
|
||
results = get_multiple_statistics_pages(search_items, with_threads=True, thread_count=5) | ||
|
||
print(results.dataframe) | ||
``` |
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
from yfs import get_statistics_page | ||
|
||
# Scrape a single symbols statistics page. | ||
result = get_statistics_page("AAPL") | ||
print(result.json(indent=4)) | ||
|
||
# How to get multiple summary pages without threads | ||
|
||
from yfs import get_multiple_statistics_pages | ||
|
||
search_items = ["TSLA", "GOOGLE", "appl", "aapl"] | ||
|
||
results = get_multiple_statistics_pages(search_items, with_threads=False) | ||
|
||
print(results.dataframe) | ||
|
||
# How to get multiple summary pages without threads | ||
|
||
from yfs import get_multiple_statistics_pages | ||
|
||
search_items = ["TSLA", "GOOGLE", "appl", "aapl"] | ||
|
||
results = get_multiple_statistics_pages(search_items, with_threads=True, thread_count=5) | ||
|
||
print(results.dataframe) |
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