Skip to content

Commit

Permalink
Merge pull request #7 from kbennatti/patch-1
Browse files Browse the repository at this point in the history
Made the get_documents function return html type
  • Loading branch information
joeyism authored Dec 8, 2019
2 parents e07d5fd + 2957144 commit 0ab8fc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion edgar/company.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def get_documents(tree, no_of_documents=1):
content_page = get_request(url)
url = BASE_URL + content_page.xpath('//*[@id="formDiv"]/div/table/tr[2]/td[3]/a')[0].attrib["href"]
filing = get_request(url)
result.append(filing.body.text_content())
result.append(filing)

if len(result) == 1:
return result[0]
Expand Down

0 comments on commit 0ab8fc6

Please sign in to comment.