![]() ![]() ![]() ![]() text # print(data) soup_text = BeautifulSoup( data, "lxml") # Save every text document into its respective folder for j in range( len( doc_list)):ĭata = r. Raise def save_in_directory( self, company_code, cik, priorto, doc_list, join( DEFAULT_DATA_PATH, company_code, cik, filing_type) # Making the directory to save comapny filings path = os. hello = "Welcome to Sec Cralwer!" print( "Path of the directory where data will be saved: " + DEFAULT_DATA_PATH)ĭef make_directory( self, company_code, cik, priorto, filing_type): import requests import os import errno from bs4 import BeautifulSoup, SoupStrainer from config import DEFAULT_DATA_PATH class SecCrawler(): # -*- coding:utf-8 -*- # This script will download all the 10-K, 10-Q and 8-K # provided that of company symbol and its cik code.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |