sec-edgar-downloader
sec-edgar-downloader copied to clipboard
Error occurred while downloading filing for accession number {}: {} 0001193125-24-060603 unsupported operand type(s) for /: 'WindowsPath' and 'float'
Hi! I'm trying to download all 8-Ks since 2018 and I've run into a couple of errors. Does anyone know how to address them? Thanks!
Error occurred while downloading filing for accession number {}: {} 0001193125-24-060603 unsupported operand type(s) for /: 'WindowsPath' and 'float'
Error occurred while downloading filing for accession number {}: {} 0001654954-20-006913 HTTPSConnectionPool(host='www.sec.gov', port=443): Read timed out. (read timeout=None)
Error occurred while downloading filing for accession number {}: {} 0001140361-23-031430 ('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))
Another error:
Error occurred while downloading filing for accession number {}: {} 0000109563-23-000103 503 Server Error: Service Unavailable for url: https://www.sec.gov/Archives/edgar/data/109563/000010956323000103/ait-20231026.htm
Hi, could you please show the codes?
Hi, could you please show the codes?
Hi! Here's my code:
import pandas as pd
from tqdm import tqdm
from sec_edgar_downloader import Downloader
dl = Downloader("", "")
df = pd.read_csv('Computstat Tickers.csv', dtype='object')
ls = df['cik'].unique().tolist()
for cik in tqdm(ls, desc='Downloading 8-K data'):
dl.get('8-K', cik, after='2023-01-01', download_details = 'HTML')