Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
tzuhsial committed May 10, 2017
2 parents f4623db + efa89b9 commit 585368f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
parsing.log
txt/*
4 changes: 2 additions & 2 deletions form10k.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from pathos.helpers import cpu_count
import requests

SEC_GOV_URL = 'http://www.sec.gov/Archives'
SEC_GOV_URL = 'https://www.sec.gov/Archives'

class Form10k(object):
def __init__(self, txt_dir):
Expand Down Expand Up @@ -61,7 +61,7 @@ def iter_path_generator(index_path):
reader = csv.reader(fin,delimiter=',',quotechar='\"',quoting=csv.QUOTE_ALL)
for row in reader:
form_type, company_name, cik, date_filed, filename = row
url = os.path.join(SEC_GOV_URL,filename)
url = os.path.join(SEC_GOV_URL,filename).replace("\\","/")
yield url

def download_job(url):
Expand Down

0 comments on commit 585368f

Please sign in to comment.