A Python library to get a company information from dataforthai.com (For my eductaional purpose)
Project description
th-company-info
This is a educational library for getting data of company info from page dataforthai.com and return as a json respone.
Installation
pip install th-company-info
Usage
from th_company_info.scraper import th_company_info
try:
tax_id = "0107542000011" # Replace with a valid 13-digit tax ID
data = th_company_info(tax_id)
print(data)
except Exception as e:
print(f"An error occurred: {e}")
Response
{
"tax_id": "0107542000011",
"name_th": "บริษัท ซีพี ออลล์ จำกัด (มหาชน)",
"name_en": "CP ALL PUBLIC COMPANY LIMITED",
"description": "ดำเนินกิจการร้านค้าสะดวกซื้อ เพื่อจำหน่ายสินค้าอุปโภค-บริโภคหมวดธุรกิจ : ร้านสะดวกซื้อ/มินิมาร์ท",
"status": "ยังดำเนินกิจการอยู่",
"registered_date": "12 มีนาคม 2542",
"registered_capital": "8,986,296,048 บาท",
"address": "313 อาคารซี.พี.ทาวเวอร์ ชั้นที่ 24 ถนนสีลม แขวงสีลม เขตบางรัก กรุงเทพมหานคร 10500",
"website": "www.cpall.co.th",
"stock_symbol": "CPALL"
}
Author
Grassroot Engineer
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 th_company_info-0.0.0.2.tar.gz.
File metadata
- Download URL: th_company_info-0.0.0.2.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
283e9033cb0c9634ea6b8c4e9d3f443a2f985b30ee236ea104482b42bbfdcd58
|
|
| MD5 |
2511a394503ca16234b43e88550cf742
|
|
| BLAKE2b-256 |
41ee18c11513deefe47b4de0aa32ac4934f7869cdca39aebff3299b7fca8ea3a
|
File details
Details for the file th_company_info-0.0.0.2-py3-none-any.whl.
File metadata
- Download URL: th_company_info-0.0.0.2-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
376ea46f1ea03bb24cb517bacec149122c862b52dc66a7b5a1b7ba635e780869
|
|
| MD5 |
555b3cd642425c5129f329bc782f72a4
|
|
| BLAKE2b-256 |
ca524bfae7f25809abdc4872c38b97108fa5155b5bf8ecf8f386d14051661ae9
|