sec-edgar-downloader icon indicating copy to clipboard operation
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'

Open kylestonsun opened this issue 10 months ago • 3 comments

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))

kylestonsun avatar Apr 24 '24 01:04 kylestonsun

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

kylestonsun avatar Apr 24 '24 01:04 kylestonsun

Hi, could you please show the codes?

HowiePand avatar Apr 26 '24 13:04 HowiePand

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')

kylestonsun avatar Apr 26 '24 13:04 kylestonsun