I am trying to learn more about Python. Please see the code below:
import pandas as pd
df = pd.read_html("https://finance.yahoo.com/crypto?offset=0&count=25")[0]
symbols = df.Symbol.tolist()
test=len(symbols)
for symbol in symbols:
print(symbol)
The query string has default values. If I change the query string to:
https://finance.yahoo.com/crypto?offset=5&count=100
Then the same 25 symbols are returned as the first url i.e. the same 25 symbols are returned regardless of the offset or count. If I browse in a browser then I get the expected results i.e. they vary depending on the offset and count.
Also my reading is telling me that only us cryptos are returned. Is this correct?