{"id":18568,"date":"2023-05-31T14:28:01","date_gmt":"2023-05-31T12:28:01","guid":{"rendered":"https:\/\/www.graviton.at\/letterswaplibrary\/self-promotion-7500-hotels-from-airbnb-booking-and-hotels-com\/"},"modified":"2023-06-24T10:35:57","modified_gmt":"2023-06-24T08:35:57","slug":"self-promotion-7500-hotels-from-airbnb-booking-and-hotels-com","status":"publish","type":"post","link":"https:\/\/www.graviton.at\/letterswaplibrary\/self-promotion-7500-hotels-from-airbnb-booking-and-hotels-com\/","title":{"rendered":"[self-promotion] 7500 Hotels From Airbnb, Booking, And Hotels.com"},"content":{"rendered":"<p><!-- SC_OFF --><\/p>\n<div class=\"md\">\n<p>I made a hotel parser on JS (<a href=\"https:\/\/www.npmjs.com\/package\/hotels-scraper-js\">hotels-scraper-js<\/a>) and checked for usefulness. Here&#8217;s the resulting dataset, if you&#8217;re interested. For tests, I chose 5 European capitals: Berlin, London, Madrid, Paris, and Rome \u2014 500 hotels from each site for each city. (In theory, there should be 500, but there are not always so many free rooms on the selected dates in practice so the results may be slightly less). You can get the hotel data you need with this parser. Check the docs for more detail, it&#8217;s very simple, like:<\/p>\n<p>&#8220;`javascript import { airbnb, booking, hotelsCom } from &#8220;hotels-scraper-js&#8221;;<\/p>\n<p>airbnb.getHotels(&#8220;YOUR_SEARCH_PARAMS&#8221;).then(console.log); booking.getHotels(&#8220;YOUR_SEARCH_PARAMS&#8221;).then(console.log); hotelsCom.getHotels(&#8220;YOUR_SEARCH_PARAMS&#8221;).then(console.log); &#8220;` <\/p>\n<p>You can load the dataset from <a href=\"https:\/\/www.kaggle.com\/datasets\/mykhailozub\/500-hotels-from-airbnb-booking-and-hotelscom\">Kaggle<\/a><\/p>\n<\/div>\n<p><!-- SC_ON -->   submitted by   <a href=\"https:\/\/www.reddit.com\/user\/Character_Equal_2732\"> \/u\/Character_Equal_2732 <\/a> <br \/> <span><a href=\"https:\/\/www.reddit.com\/r\/datasets\/comments\/13fkzf1\/selfpromotion_7500_hotels_from_airbnb_booking_and\/\">[link]<\/a><\/span>   <span><a href=\"https:\/\/www.reddit.com\/r\/datasets\/comments\/13fkzf1\/selfpromotion_7500_hotels_from_airbnb_booking_and\/\">[comments]<\/a><\/span><\/p><div class='watch-action'><div class='watch-position align-right'><div class='action-like'><a class='lbg-style1 like-18568 jlk' href='javascript:void(0)' data-task='like' data-post_id='18568' data-nonce='65e0e39b87' rel='nofollow'><img class='wti-pixel' src='https:\/\/www.graviton.at\/letterswaplibrary\/wp-content\/plugins\/wti-like-post\/images\/pixel.gif' title='Like' \/><span class='lc-18568 lc'>0<\/span><\/a><\/div><\/div> <div class='status-18568 status align-right'><\/div><\/div><div class='wti-clear'><\/div>","protected":false},"excerpt":{"rendered":"<p>I made a hotel parser on JS (hotels-scraper-js) and checked for usefulness. Here&#8217;s the resulting dataset, if&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[85],"tags":[27],"class_list":["post-18568","post","type-post","status-publish","format-standard","hentry","category-datatards","tag-english","wpcat-85-id"],"_links":{"self":[{"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/posts\/18568","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/comments?post=18568"}],"version-history":[{"count":1,"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/posts\/18568\/revisions"}],"predecessor-version":[{"id":19493,"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/posts\/18568\/revisions\/19493"}],"wp:attachment":[{"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/media?parent=18568"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/categories?post=18568"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.graviton.at\/letterswaplibrary\/wp-json\/wp\/v2\/tags?post=18568"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}