Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error occurred while downloading filing for accession number {}: {} 0001193125-24-060603 unsupported operand type(s) for /: 'WindowsPath' and 'float' #140

Open
kylestonsun opened this issue Apr 24, 2024 · 3 comments

Comments

@kylestonsun
Copy link

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
Copy link
Author

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

@HowiePand
Copy link

Hi, could you please show the codes?

@kylestonsun
Copy link
Author

kylestonsun commented Apr 26, 2024

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 kylestonsun closed this as not planned Won't fix, can't repro, duplicate, stale Apr 26, 2024
@kylestonsun kylestonsun reopened this Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants