A Python package to fetch CA member details from ICAI website
Project description
ICAI CA Scraper
A Python package to fetch CA member details from the ICAI (Institute of Chartered Accountants of India) website.
Installation
pip install icai-ca-scraper
Usage
Basic Usage
from icai_ca_scraper import CAScraper
# Initialize the scraper
scraper = CAScraper()
# Get details for a single CA member
member_details = scraper.get_member_details(100000)
if member_details:
print(member_details)
# Get details for multiple CA members
member_numbers = [100001, 100002, 100003]
results = scraper.get_multiple_members(member_numbers)
print(results)
Example with Custom Delay
# Initialize with custom delay between requests (in seconds)
scraper = CAScraper(delay_between_requests=2.0)
# Get member details
details = scraper.get_member_details(100000)
Save Results to JSON
import json
# Get multiple member details
results = scraper.get_multiple_members([100001, 100002, 100003])
# Save to file
with open("ca_results.json", "w", encoding="utf-8") as f:
json.dump(results, f, indent=2, ensure_ascii=False)
Features
- Fetch CA member details by membership number
- Support for both single and multiple member lookups
- Built-in rate limiting to prevent server overload
- Clean and standardized data output
- Proper error handling
- SSL verification handling
- Session management
Data Fields
The package retrieves the following information (when available):
- Name
- Gender
- Qualification
- Address
- COP Status (Certificate of Practice)
- Associate Year
- Fellow Year
- Membership Number
- Date of Birth
- Mobile
- Phone
Example Response
{
"100000": {
"name": "JOHN DOE",
"gender": "M",
"qualification": "B.Com",
"address": "123 MAIN ST, CITY, STATE 123456",
"cop_status": "FULL TIME",
"associate_year": "A1995",
"fellow_year": "F2013",
"membership_no": "100000",
"date_of_birth": "01-01-1970",
"email": "john@example.com",
"mobile": "9999999999",
"last_updated": "2024-04-07 10:30:00"
}
}
Requirements
- Python 3.7+
- requests>=2.25.0
- beautifulsoup4>=4.9.0
- urllib3>=1.26.0
License
This project is licensed under the MIT License - see the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file icai_ca_scraper-0.1.0.tar.gz.
File metadata
- Download URL: icai_ca_scraper-0.1.0.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
77f5e500c8cc6f9d030a1b1f4029f51081baf63b9163c082b02af5ccf8942867
|
|
| MD5 |
5d2ce6645dc40b531dfaaec02f993ebb
|
|
| BLAKE2b-256 |
b8a00d6661abd206fe2a41128e3f49ef1021ffddb9dbe8133aa2b5e00e95a459
|
File details
Details for the file icai_ca_scraper-0.1.0-py3-none-any.whl.
File metadata
- Download URL: icai_ca_scraper-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d72982490ba07a642fdf49213259ae63b84928aaf65679046defb6c6ba8d2253
|
|
| MD5 |
7ed7ff419ffa1e116c4b96bf2de2de81
|
|
| BLAKE2b-256 |
34e05d6a97fa46c2958e27b1e3be84d441953864a66da5ed7d0b09ad65122044
|