blob: 7d90507cf018042ab6150faa0a2c158b5657b345 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
import os
uid = 1
# Placeholder Filing class
class Filing:
def __init__(self, cik, filing_type, count):
self.cik = cik
self.filing_type = filing_type
self.count = count
def save(self, filings_dir):
global uid
out_dir = os.path.join(filings_dir, self.cik, "10-k")
out_filename = os.path.join(out_dir, "file_{}.out".format(uid))
uid += 1
os.makedirs(out_dir, exist_ok=True)
with open(out_filename, "w") as f:
f.write("<html>ribul</html>")
|