This is a collection of python scripts for daily routines of testing GTA API and analysis tools.
- swarm.py - A simple python scrript to run n times of AddBookingRequest and CancelBookingRequest by response from SearchHotelPriceRequest.
- sp.py - Take in a list of hotel codes defined in hotel_codes and do pax 1, 2, 3 search on each of the hotel.
- mapping.py - Checking if a csv file have duplicate GTA_key in hotel mapping.
- ctrip.py - Dump relavant information of a hotel on ctrip given ctrip hotel id.
- spp.py - Dump a csv file of specified GTA hotel code with relavant information.
- ctriptrip.py - A script using webdriver to download all rate plan of a specific hotel on ctrip
- spplus.py - Dump a csv of dates when GTA hotel has a price
- elong.py - Dump a csv of price differences between what GTA offers and the lowest by Elong
- asp.py - Dump rate plans of hotels as csv
- sendmail.py - An example of send email with attachment
- as400.py - An example of how you could connect to IBM AS400 with Python
- l2b.py - An example of how to parse html with Soup
- haoqiao.py - A crawler for extracting price from HQ
- booking_href.py - A crawler grabbing all hotel href from a starting search result url of booking
- booking.py - A crawler grabbing all hotel facilites from booking
- booking_room_facility.py - A crawler for extracting room facilities from booking
- search_info.py - Search GTA Item Information API
- ctripplus.py - Compare GTA price and Ctrip price on room type level
- booking_id.py - Search booking and dump booking id
- search_item_hr.py - Search booking item and get hotel reference #
- hc.py - Crawl GC and get hotel comfirmation #
- ctriproom.py - Crawl Ctrip and get a list of Ctrip room types
- asp.py - Fetch a list of rate plans from GTA API
- ctripmultiplus.py - A shortcut for
ctripplus.py
- ctripref.py - A shortcut for running
booking_id.py
,search_item_hr.py
andhc.py
- ctrip_update_res_no.py - Take results from
hc.py
and push hotel ref to Ctrip's API - ctrip_store_booking.py - Keep track of bookings so not to push to Ctrip twice
- ctripref_stats_gai.py - Take data from
ctrip_store_booking.py
to have the stats of hotel ref coverage - sendmail_win.py - A imporved example of how you can send emails by a Exchange Server account
- asp_parallel.py - Multi thread version of
asp.py
- asp_pool_w.py - Multi process version of
asp.py
using pool - sendmail_win_cs.py - Example of sending email with attachment (Exchange server)
- ctripref_stat_v.ipynb - notebook for Ctrip hotel ref stats
- fault_http.py - Example of reading Triometrics xls
- steemit.py - views?
- pname_pool.py - Get pax names from bookings
- asp_multi.py - run asp_pool with multiple dates
- pa_hb.py - run analytics on Ctrip HB price and availability check API log dump
- hb_er.py - Run analytics on HB TRioMetrics price and availability log dump
- hb_report.py - Run sendmail_win_hb to grab email attachment from inbox; Run hr_er to do analytics; send result to relevant parties using sendmail_win_hb2
- sendmail_win_hb.py - Download appropriate pa log file from my inbox and save it
- sendmail_win_hb2.py - Send result to relevant parties
- booking_count.py - Count number of bookings of a client
- asp_pool_hb.py - Batching HB API (Multi thread)
Drop a mail to mailto:[email protected].