This file contains hidden or 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
import requests | |
from bs4 import BeautifulSoup | |
def get_table_from_slickcharts(url: str) -> List[Dict[str, Union[str, float]]]: | |
# parse table for symbols from slickcharts | |
headers = {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36'} | |
response = requests.get(url, headers=headers) | |
data = [] |
This file contains hidden or 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
import requests | |
import bs4 | |
import pandas as pd | |
headers = {'User-agent': 'Mozilla/5.0'} | |
def search_etf(ticker, region='UK', is_etf=True): | |
search_site = f"https://markets.ft.com/data/funds/ajax/search" | |
params = { |