Skip to main content

unofficial api to get information from camphub and other camp/competition news website. in thai

Project description

Usage

get an information about the camp and compettion currently available

aims to be used mainly on thailand event and compettion centered aroud tech and computer

I don't have intention to make it a scraper for commercial purpose I just want to share the information I found in discord faster

user of this project should only use it for personal use and not for commercial purpose

Supported Site

Installation

pip install camp_parser

Usage

Get CampInfro

from camp_parser import camphub_parser # or any thing thatREADME.rst we support
camp = camphub_parser('https://www.camphub.in.th/computer/') #page url
print(camp.info) #get the information

Fetch many pages at once

from camp_parser import camphub_parser # or any thing

camp = camphub_parser('https://www.camphub.in.th/computer/') # source page url default is None

data = camp.page_fetching('https://www.camphub.in.th/computer/', pages = 50) # Fetch 50 pages without MultiThreading
ndata = camp.page_fetching('https://www.camphub.in.th/computer/', pages = 50, workers = 8) # Enable Multiprocessing


#wotkers depend on your CPU core

Information structure

{
    'title': 'title of the camp',
    'link': 'link to the camp page',
    'small_description': 'mified description of the camp',
    'type': 'event type (onsite/online/etc...)',
    'organize_date': 'start date of the camp',
    'register_deadline': 'last day yu can register to the camp',
    'max_paticipants': '(string not number Ex. ไม่จำกัด, 200ค คน)',
    'costs': 'cost of the camp Ex. ฟรี, 1000 บาท',
    'paticipants_requirements': 'what you need to join the camp',
    'organizer': 'who organize the camp',
    'full_description': 'full description of the camp',

}

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

camp_parser-1.1.1.tar.gz (4.3 kB view details)

Uploaded Source

File details

Details for the file camp_parser-1.1.1.tar.gz.

File metadata

  • Download URL: camp_parser-1.1.1.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.0

File hashes

Hashes for camp_parser-1.1.1.tar.gz
Algorithm Hash digest
SHA256 75018ed845850c326a1aa4d654580440299d485ec300ba85cd73b391e5e8da29
MD5 9e6d8a45ce52f2b73b3ea2bbfdb67b8a
BLAKE2b-256 409b196d23089a34f2f6ef120fc9e8d846e2d2f33a81a0b57d706e1c26700ade

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