Client API Reference#
Asynchronous client in nse_xbrl_parser.client.
AsyncNSEClient#
- class nse_xbrl_parser.client.nse_client.AsyncNSEClient(cookie_string=None, cache_dir=None)[source]#
Bases:
objectAsynchronous client for downloading and parsing NSE XBRL disclosures.
- Parameters:
cookie_string (Optional[str])
cache_dir (Optional[Path])
- DEFAULT_USER_AGENT = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36'#
- async parse_url(url)[source]#
Download XBRL instance document from URL and parse it.
- Parameters:
url (str)
- Return type:
- async parse_url_archive(zip_url)[source]#
Download ZIP archive from URL and parse all contained XBRL filings.
- Parameters:
zip_url (str)
- Return type: