Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

th_company_info-0.0.0.1.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

th_company_info-0.0.0.1-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file th_company_info-0.0.0.1.tar.gz.

File metadata

  • Download URL: th_company_info-0.0.0.1.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

Hashes for th_company_info-0.0.0.1.tar.gz
Algorithm Hash digest
SHA256 01e72386c993a53bab21fbea79bc025e0ce0531933e7a0a872f2af7241198ab2
MD5 1b8ae0b29197d11b4c36e4bb1a5830b1
BLAKE2b-256 71ecccda951c96e7d4ea82f5f17e6406c5ad587266a954d55d345e9ab04d552e

See more details on using hashes here.

File details

Details for the file th_company_info-0.0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for th_company_info-0.0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e05d1c935665c7d4f3bc31ff21b7d7750af078eef7fed6ea0165c4c4db80f5ba
MD5 29dac2ce698c3875cbbb2055c9fe195e
BLAKE2b-256 97251784e2826b9695b5631f5e5f303436dfb61bd04e2966fad6ebea35302881

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page