├── requirements.txt ├── urls.txt ├── booking.yml ├── scrape.py ├── README.md └── data.csv /requirements.txt: -------------------------------------------------------------------------------- 1 | requests 2 | selectorlib -------------------------------------------------------------------------------- /urls.txt: -------------------------------------------------------------------------------- 1 | https://www.booking.com/searchresults.en-gb.html?label=gen173nr-1DCAEoggI46AdIM1gEaKQCiAEBmAEJuAEHyAEM2AED6AEBiAIBqAIDuALCxJ31BcACAQ&sid=f9fee06c5bacc4ad62664a22b25da87e&sb=1&sb_lp=1&src=index&src_elem=sb&error_url=https%3A%2F%2Fwww.booking.com%2Findex.en-gb.html%3Flabel%3Dgen173nr-1DCAEoggI46AdIM1gEaKQCiAEBmAEJuAEHyAEM2AED6AEBiAIBqAIDuALCxJ31BcACAQ%3Bsid%3Df9fee06c5bacc4ad62664a22b25da87e%3Bsb_price_type%3Dtotal%26%3B&ss=San+Francisco%2C+California%2C+United+States&is_ski_area=&ssne=Johannesburg&ssne_untouched=Johannesburg&checkin_year=2020&checkin_month=5&checkin_monthday=21&checkout_year=2020&checkout_month=5&checkout_monthday=22&group_adults=2&group_children=0&no_rooms=1&b_h4u_keep_filters=&from_sf=1&ss_raw=San+Fran&ac_position=0&ac_langcode=en&ac_click_type=b&dest_id=20015732&dest_type=city&iata=SFO&place_id_lat=37.787804&place_id_lon=-122.407503&search_pageview_id=8014a0e16e3d0075&search_selected=true&search_pageview_id=8014a0e16e3d0075&ac_suggestion_list_length=5&ac_suggestion_theme_list_length=0 -------------------------------------------------------------------------------- /booking.yml: -------------------------------------------------------------------------------- 1 | hotels: 2 | css: div.sr_item 3 | multiple: true 4 | type: Text 5 | children: 6 | name: 7 | css: span.sr-hotel__name 8 | type: Text 9 | location: 10 | css: a.bui-link 11 | type: Text 12 | price: 13 | css: div.bui-price-display__value 14 | type: Text 15 | price_for: 16 | css: div.bui-price-display__label 17 | type: Text 18 | room_type: 19 | css: strong 20 | type: Text 21 | beds: 22 | css: div.c-beds-configuration 23 | type: Text 24 | rating: 25 | css: div.bui-review-score__badge 26 | type: Text 27 | rating_title: 28 | css: div.bui-review-score__title 29 | type: Text 30 | number_of_ratings: 31 | css: div.bui-review-score__text 32 | type: Text 33 | url: 34 | css: a.hotel_name_link 35 | type: Link 36 | -------------------------------------------------------------------------------- /scrape.py: -------------------------------------------------------------------------------- 1 | from selectorlib import Extractor 2 | import requests 3 | from time import sleep 4 | import csv 5 | 6 | # Create an Extractor by reading from the YAML file 7 | e = Extractor.from_yaml_file('booking.yml') 8 | 9 | def scrape(url): 10 | headers = { 11 | 'Connection': 'keep-alive', 12 | 'Pragma': 'no-cache', 13 | 'Cache-Control': 'no-cache', 14 | 'DNT': '1', 15 | 'Upgrade-Insecure-Requests': '1', 16 | # You may want to change the user agent if you get blocked 17 | 'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.113 Safari/537.36', 18 | 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9', 19 | 20 | 'Referer': 'https://www.booking.com/index.en-gb.html', 21 | 'Accept-Language': 'en-GB,en-US;q=0.9,en;q=0.8', 22 | } 23 | 24 | # Download the page using requests 25 | print("Downloading %s"%url) 26 | r = requests.get(url, headers=headers) 27 | # Pass the HTML of the page and create 28 | return e.extract(r.text,base_url=url) 29 | 30 | # product_data = [] 31 | with open("urls.txt",'r') as urllist, open('data.csv','w') as outfile: 32 | fieldnames = [ 33 | "name", 34 | "location", 35 | "price", 36 | "price_for", 37 | "room_type", 38 | "beds", 39 | "rating", 40 | "rating_title", 41 | "number_of_ratings", 42 | "url" 43 | ] 44 | writer = csv.DictWriter(outfile, fieldnames=fieldnames,quoting=csv.QUOTE_ALL) 45 | writer.writeheader() 46 | for url in urllist.readlines(): 47 | data = scrape(url) 48 | if data: 49 | for h in data['hotels']: 50 | writer.writerow(h) 51 | # sleep(5) 52 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Web Scraper to extract hotel prices from Booking.com 2 | 3 | Scraper to get Hotel price details from any search on Booking.com 4 | 5 | Full article at [ScrapeHero Tutorials](https://www.scrapehero.com/scrape-property-data-from-booking-com-using-google-chrome/) 6 | 7 | ## Usage 8 | 9 | 1. Install Requirements `pip3 install -r requirements.txt` 10 | 1. Search in Booking.com for Hotels 11 | 1. Copy and add the search result URLS to [urls.txt](urls.txt) 12 | 1. Run `python3 scrape.py` 13 | 1. Get data from [data.csv](data.csv) 14 | 15 | ## Example Data Format 16 | 17 | |name |location |price |price_for |room_type |beds |rating|rating_title|number_of_ratings|url | 18 | |------------------------------------------|---------------------------------------|------|-----------------|-------------------|----------------------|------|------------|-----------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| 19 | |Holiday Inn San Francisco - Golden Gateway|Nob Hill, San Francisco Show on map |US$105|1 night, 2 adults|Standard Room |1 bed (1 large double)|8.0 |Very good |1,087 reviews |https://www.booking.com/hotel/us/holiday-inn-san-francisco-golden-gateway.en-gb.html?label=gen173nr-1DCAEoggI46AdIM1gEaKQCiAEBmAEJuAEHyAEM2AED6AEBiAIBqAIDuALCxJ31BcACAQ&sid=fd87930dc2332bf456ae77419c18c3a1&all_sr_blocks=18230001_251343373_0_2_0&checkin=2020-05-21&checkout=2020-05-22&dest_id=20015732&dest_type=city&group_adults=2&group_children=0&hapos=1&highlighted_blocks=18230001_251343373_0_2_0&hpos=1&no_rooms=1&sr_order=popularity&sr_pri_blocks=18230001_251343373_0_2_0__10500&srepoch=1588028809&srpvid=6d52a284d2ce0035&ucfs=1&from=searchresults ;highlight_room=#hotelTmpl| 20 | |Handlery Union Square Hotel |Union Square, San Francisco Show on map|US$99 |1 night, 2 adults|Petite Double Room |1 bed (1 double) |8.2 |Very good |2,278 reviews |https://www.booking.com/hotel/us/handlery-union-square.en-gb.html?label=gen173nr-1DCAEoggI46AdIM1gEaKQCiAEBmAEJuAEHyAEM2AED6AEBiAIBqAIDuALCxJ31BcACAQ&sid=fd87930dc2332bf456ae77419c18c3a1&all_sr_blocks=5628504_245000754_0_0_0&checkin=2020-05-21&checkout=2020-05-22&dest_id=20015732&dest_type=city&group_adults=2&group_children=0&hapos=2&highlighted_blocks=5628504_245000754_0_0_0&hpos=2&no_rooms=1&sr_order=popularity&sr_pri_blocks=5628504_245000754_0_0_0__9900&srepoch=1588028809&srpvid=6d52a284d2ce0035&ucfs=1&from=searchresults ;highlight_room=#hotelTmpl | 21 | |King George |Union Square, San Francisco Show on map|US$159|1 night, 2 adults|Superior Queen Room|1 bed (1 large double)|8.3 |Very good |1,487 reviews |https://www.booking.com/hotel/us/king-george.en-gb.html?label=gen173nr-1DCAEoggI46AdIM1gEaKQCiAEBmAEJuAEHyAEM2AED6AEBiAIBqAIDuALCxJ31BcACAQ&sid=fd87930dc2332bf456ae77419c18c3a1&all_sr_blocks=5625710_238956971_0_0_0&checkin=2020-05-21&checkout=2020-05-22&dest_id=20015732&dest_type=city&group_adults=2&group_children=0&hapos=3&highlighted_blocks=5625710_238956971_0_0_0&hpos=3&no_rooms=1&sr_order=popularity&sr_pri_blocks=5625710_238956971_0_0_0__15900&srepoch=1588028809&srpvid=6d52a284d2ce0035&ucfs=1&from=searchresults ;highlight_room=#hotelTmpl | 22 | |The Pickwick Hotel San Francisco |Union Square, San Francisco Show on map|US$139|1 night, 2 adults|Queen Room |1 bed (1 large double)|7.3 |Good |2,139 reviews |https://www.booking.com/hotel/us/the-pickwick-san-francisco.en-gb.html?label=gen173nr-1DCAEoggI46AdIM1gEaKQCiAEBmAEJuAEHyAEM2AED6AEBiAIBqAIDuALCxJ31BcACAQ&sid=fd87930dc2332bf456ae77419c18c3a1&all_sr_blocks=5607711_190214860_0_0_0&checkin=2020-05-21&checkout=2020-05-22&dest_id=20015732&dest_type=city&group_adults=2&group_children=0&hapos=4&highlighted_blocks=5607711_190214860_0_0_0&hpos=4&no_rooms=1&sr_order=popularity&sr_pri_blocks=5607711_190214860_0_0_0__13900&srepoch=1588028809&srpvid=6d52a284d2ce0035&ucfs=1&from=searchresults ;highlight_room=#hotelTmpl | 23 | 24 | 25 | ## Learn More 26 | 27 | This was not built for production deployments. There are several challenges for this simple scraper to work, when scraping a large number of pages. 28 | 29 | 30 | - [Scalable Large Scale Web Scraping – How to build, maintain and run scrapers](https://www.scrapehero.com/how-to-build-and-run-scrapers-on-a-large-scale/) 31 | - [Web Scraping without getting Blocked](https://www.scrapehero.com/how-to-prevent-getting-blacklisted-while-scraping/) 32 | ## Disclaimer 33 | 34 | Any code provided in our tutorials is for illustration and learning purposes only. We are not responsible for how it is used and assume no liability for any detrimental usage of the source code. The mere presence of this code on our repository does not imply that we encourage scraping or scrape the websites referenced in the code and accompanying tutorial. The tutorials only help illustrate the technique of programming web scrapers for popular internet websites. We are not obligated to provide any support for the code, however, if you add your questions in the comments section, we may periodically address them. 35 | -------------------------------------------------------------------------------- /data.csv: -------------------------------------------------------------------------------- 1 | "name","location","price","price_for","room_type","beds","rating","rating_title","number_of_ratings","url" 2 | "Holiday Inn San Francisco - Golden Gateway","Nob Hill, San Francisco Show on map","₹ 8,006","1 night, 2 adults","Standard Room","Multiple bed types","8.0","Very good","1,085 reviews","https://www.booking.com/hotel/us/holiday-inn-san-francisco-golden-gateway.en-gb.html?label=gen173nr-1DCAEoggI46AdIM1gEaKQCiAEBmAEJuAEHyAEM2AED6AEBiAIBqAIDuALCxJ31BcACAQ&sid=aa44f8de759b2bef3e29506e3daec5f2&all_sr_blocks=18230001_251343373_0_2_0&checkin=2020-05-21&checkout=2020-05-22&dest_id=20015732&dest_type=city&group_adults=2&group_children=0&hapos=1&highlighted_blocks=18230001_251343373_0_2_0&hpos=1&no_rooms=1&sr_order=popularity&sr_pri_blocks=18230001_251343373_0_2_0__10500&srepoch=1588086755&srpvid=93ff6af1efb200d4&ucfs=1&from=searchresults 3 | ;highlight_room=#hotelTmpl" 4 | "San Francisco Marriott Marquis Union Square","Union Square, San Francisco Show on map","₹ 18,223","1 night, 2 adults","King Room No View","1 extra-large double bed","8.6","Fabulous","2,705 reviews","https://www.booking.com/hotel/us/marriott-marquis-san-francisco.en-gb.html?label=gen173nr-1DCAEoggI46AdIM1gEaKQCiAEBmAEJuAEHyAEM2AED6AEBiAIBqAIDuALCxJ31BcACAQ&sid=aa44f8de759b2bef3e29506e3daec5f2&all_sr_blocks=26287701_246425403_2_2_0&checkin=2020-05-21&checkout=2020-05-22&dest_id=20015732&dest_type=city&group_adults=2&group_children=0&hapos=2&highlighted_blocks=26287701_246425403_2_2_0&hpos=2&no_rooms=1&sr_order=popularity&sr_pri_blocks=26287701_246425403_2_2_0__23900&srepoch=1588086755&srpvid=93ff6af1efb200d4&ucfs=1&from=searchresults 5 | ;highlight_room=#hotelTmpl" 6 | "Hotel Riu Plaza Fisherman's Wharf","Fisherman's Wharf, San Francisco Show on map","₹ 25,086","1 night, 2 adults","Deluxe Queen Room with Two Queen Beds","2 large double beds","8.4","Very good","428 reviews","https://www.booking.com/hotel/us/sheraton-fishermans-wharf.en-gb.html?label=gen173nr-1DCAEoggI46AdIM1gEaKQCiAEBmAEJuAEHyAEM2AED6AEBiAIBqAIDuALCxJ31BcACAQ&sid=aa44f8de759b2bef3e29506e3daec5f2&all_sr_blocks=5889127_256967043_0_42_0&checkin=2020-05-21&checkout=2020-05-22&dest_id=20015732&dest_type=city&group_adults=2&group_children=0&hapos=3&highlighted_blocks=5889127_256967043_0_42_0&hpos=3&no_rooms=1&sr_order=popularity&sr_pri_blocks=5889127_256967043_0_42_0__32901&srepoch=1588086755&srpvid=93ff6af1efb200d4&ucfs=1&from=searchresults 7 | ;highlight_room=#hotelTmpl" 8 | "The Pickwick Hotel San Francisco","Union Square, San Francisco Show on map","₹ 9,539","1 night, 2 adults","Standard King Room","1 extra-large double bed","7.3","Good","2,139 reviews","https://www.booking.com/hotel/us/the-pickwick-san-francisco.en-gb.html?label=gen173nr-1DCAEoggI46AdIM1gEaKQCiAEBmAEJuAEHyAEM2AED6AEBiAIBqAIDuALCxJ31BcACAQ&sid=aa44f8de759b2bef3e29506e3daec5f2&all_sr_blocks=5607703_190214860_0_0_0&checkin=2020-05-21&checkout=2020-05-22&dest_id=20015732&dest_type=city&group_adults=2&group_children=0&hapos=4&highlighted_blocks=5607703_190214860_0_0_0&hpos=4&no_rooms=1&sr_order=popularity&sr_pri_blocks=5607703_190214860_0_0_0__12510&srepoch=1588086755&srpvid=93ff6af1efb200d4&ucfs=1&from=searchresults 9 | ;highlight_room=#hotelTmpl" 10 | "Nineteen 06 Mission","Mission, San Francisco Show on map","₹ 6,885","1 night, 2 adults","Standard Queen Room","1 large double bed","9.0","Superb","601 reviews","https://www.booking.com/hotel/us/1906-mission.en-gb.html?label=gen173nr-1DCAEoggI46AdIM1gEaKQCiAEBmAEJuAEHyAEM2AED6AEBiAIBqAIDuALCxJ31BcACAQ&sid=aa44f8de759b2bef3e29506e3daec5f2&all_sr_blocks=109613201_256537162_2_1_0&checkin=2020-05-21&checkout=2020-05-22&dest_id=20015732&dest_type=city&group_adults=2&group_children=0&hapos=5&highlighted_blocks=109613201_256537162_2_1_0&hpos=5&no_rooms=1&sr_order=popularity&sr_pri_blocks=109613201_256537162_2_1_0__9030&srepoch=1588086755&srpvid=93ff6af1efb200d4&ucfs=1&from=searchresults 11 | ;highlight_room=#hotelTmpl" 12 | "Days Inn by Wyndham San Francisco Downtown/Civic Cntr Area","Western Addition, San Francisco Show on map","₹ 9,912","1 night, 2 adults","Queen Room - Disability Access/Non-Smoking","1 large double bed","8.2","Very good","981 reviews","https://www.booking.com/hotel/us/civic-center.en-gb.html?label=gen173nr-1DCAEoggI46AdIM1gEaKQCiAEBmAEJuAEHyAEM2AED6AEBiAIBqAIDuALCxJ31BcACAQ&sid=aa44f8de759b2bef3e29506e3daec5f2&all_sr_blocks=52271008_246100786_2_1_0&checkin=2020-05-21&checkout=2020-05-22&dest_id=20015732&dest_type=city&group_adults=2&group_children=0&hapos=6&highlighted_blocks=52271008_246100786_2_1_0&hpos=6&no_rooms=1&sr_order=popularity&sr_pri_blocks=52271008_246100786_2_1_0__13000&srepoch=1588086755&srpvid=93ff6af1efb200d4&ucfs=1&from=searchresults 13 | ;highlight_room=#hotelTmpl" 14 | "Marriott Vacation Club Pulse, San Francisco","Fisherman's Wharf, San Francisco Show on map","₹ 14,411","1 night, 2 adults","Guest room, 1 King, No view","","8.4","Very good","1,252 reviews","https://www.booking.com/hotel/us/marriott-vacation-club-pulse.en-gb.html?label=gen173nr-1DCAEoggI46AdIM1gEaKQCiAEBmAEJuAEHyAEM2AED6AEBiAIBqAIDuALCxJ31BcACAQ&sid=aa44f8de759b2bef3e29506e3daec5f2&all_sr_blocks=2986631_191394423_0_0_0&checkin=2020-05-21&checkout=2020-05-22&dest_id=20015732&dest_type=city&group_adults=2&group_children=0&hapos=7&highlighted_blocks=2986631_191394423_0_0_0&hpos=7&no_rooms=1&sr_order=popularity&sr_pri_blocks=2986631_191394423_0_0_0__18900&srepoch=1588086755&srpvid=93ff6af1efb200d4&ucfs=1&from=searchresults 15 | ;highlight_room=#hotelTmpl" 16 | "Beresford Arms","Union Square, San Francisco Show on map","₹ 7,244","1 night, 2 adults","Standard Queen Room","1 large double bed","8.2","Very good","4,225 reviews","https://www.booking.com/hotel/us/beresford-arms.en-gb.html?label=gen173nr-1DCAEoggI46AdIM1gEaKQCiAEBmAEJuAEHyAEM2AED6AEBiAIBqAIDuALCxJ31BcACAQ&sid=aa44f8de759b2bef3e29506e3daec5f2&all_sr_blocks=5877401_203403181_0_1_0&checkin=2020-05-21&checkout=2020-05-22&dest_id=20015732&dest_type=city&group_adults=2&group_children=0&hapos=8&highlighted_blocks=5877401_203403181_0_1_0&hpos=8&no_rooms=1&sr_order=popularity&sr_pri_blocks=5877401_203403181_0_1_0__9500&srepoch=1588086755&srpvid=93ff6af1efb200d4&ucfs=1&from=searchresults 17 | ;highlight_room=#hotelTmpl" 18 | "Hilton San Francisco Union Square","Union Square, San Francisco Show on map","₹ 12,123","1 night, 2 adults","One King Bed Mobility/Hearing Accessible - Roll-In Shower","1 extra-large double bed","8.0","Very good","3,569 reviews","https://www.booking.com/hotel/us/hilton-san-francisco.en-gb.html?label=gen173nr-1DCAEoggI46AdIM1gEaKQCiAEBmAEJuAEHyAEM2AED6AEBiAIBqAIDuALCxJ31BcACAQ&sid=aa44f8de759b2bef3e29506e3daec5f2&all_sr_blocks=2985343_102714790_2_2_0&checkin=2020-05-21&checkout=2020-05-22&dest_id=20015732&dest_type=city&group_adults=2&group_children=0&hapos=9&highlighted_blocks=2985343_102714790_2_2_0&hpos=9&no_rooms=1&sr_order=popularity&sr_pri_blocks=2985343_102714790_2_2_0__15900&srepoch=1588086755&srpvid=93ff6af1efb200d4&ucfs=1&from=searchresults 19 | ;highlight_room=#hotelTmpl" 20 | "King George","Union Square, San Francisco Show on map","₹ 12,123","1 night, 2 adults","Superior Queen Room","1 large double bed","8.3","Very good","1,487 reviews","https://www.booking.com/hotel/us/king-george.en-gb.html?label=gen173nr-1DCAEoggI46AdIM1gEaKQCiAEBmAEJuAEHyAEM2AED6AEBiAIBqAIDuALCxJ31BcACAQ&sid=aa44f8de759b2bef3e29506e3daec5f2&all_sr_blocks=5625710_238956971_0_0_0&checkin=2020-05-21&checkout=2020-05-22&dest_id=20015732&dest_type=city&group_adults=2&group_children=0&hapos=10&highlighted_blocks=5625710_238956971_0_0_0&hpos=10&no_rooms=1&sr_order=popularity&sr_pri_blocks=5625710_238956971_0_0_0__15900&srepoch=1588086755&srpvid=93ff6af1efb200d4&ucfs=1&from=searchresults 21 | ;highlight_room=#hotelTmpl" 22 | "Petite Auberge","Union Square, San Francisco Show on map","₹ 11,361","1 night, 2 adults","Queen Room","1 large double bed","8.5","Very good","669 reviews","https://www.booking.com/hotel/us/petite-auberge.en-gb.html?label=gen173nr-1DCAEoggI46AdIM1gEaKQCiAEBmAEJuAEHyAEM2AED6AEBiAIBqAIDuALCxJ31BcACAQ&sid=aa44f8de759b2bef3e29506e3daec5f2&all_sr_blocks=18322601_208021635_0_1_0&checkin=2020-05-21&checkout=2020-05-22&dest_id=20015732&dest_type=city&group_adults=2&group_children=0&hapos=11&highlighted_blocks=18322601_208021635_0_1_0&hpos=11&no_rooms=1&sr_order=popularity&sr_pri_blocks=18322601_208021635_0_1_0__14900&srepoch=1588086755&srpvid=93ff6af1efb200d4&ucfs=1&from=searchresults 23 | ;highlight_room=#hotelTmpl" 24 | "Hotel Zephyr San Francisco","Fisherman's Wharf, San Francisco Show on map","₹ 25,848","1 night, 2 adults","King Room - Disability Access","1 extra-large double bed","8.1","Very good","4,391 reviews","https://www.booking.com/hotel/us/zephyr-san-francisco.en-gb.html?label=gen173nr-1DCAEoggI46AdIM1gEaKQCiAEBmAEJuAEHyAEM2AED6AEBiAIBqAIDuALCxJ31BcACAQ&sid=aa44f8de759b2bef3e29506e3daec5f2&all_sr_blocks=130731618_236013679_2_2_0&checkin=2020-05-21&checkout=2020-05-22&dest_id=20015732&dest_type=city&group_adults=2&group_children=0&hapos=12&highlighted_blocks=130731618_236013679_2_2_0&hpos=12&no_rooms=1&sr_order=popularity&sr_pri_blocks=130731618_236013679_2_2_0__33900&srepoch=1588086755&srpvid=93ff6af1efb200d4&ucfs=1&from=searchresults 25 | ;highlight_room=#hotelTmpl" 26 | "Hilton San Francisco Financial District","Financial District, San Francisco Show on map","₹ 9,073","1 night, 2 adults","Double Room","1 double bed","7.6","Good","1,344 reviews","https://www.booking.com/hotel/us/hilton-san-francisco-financial-district.en-gb.html?label=gen173nr-1DCAEoggI46AdIM1gEaKQCiAEBmAEJuAEHyAEM2AED6AEBiAIBqAIDuALCxJ31BcACAQ&sid=aa44f8de759b2bef3e29506e3daec5f2&all_sr_blocks=5928403_119150907_2_2_0&checkin=2020-05-21&checkout=2020-05-22&dest_id=20015732&dest_type=city&group_adults=2&group_children=0&hapos=13&highlighted_blocks=5928403_119150907_2_2_0&hpos=13&no_rooms=1&sr_order=popularity&sr_pri_blocks=5928403_119150907_2_2_0__11900&srepoch=1588086755&srpvid=93ff6af1efb200d4&ucfs=1&from=searchresults 27 | ;highlight_room=#hotelTmpl" 28 | "Hotel Nikko San Francisco","Union Square, San Francisco Show on map","₹ 21,273","1 night, 2 adults","Petite Queen Room","1 large double bed","8.8","Fabulous","2,532 reviews","https://www.booking.com/hotel/us/nikko-san-francisco.en-gb.html?label=gen173nr-1DCAEoggI46AdIM1gEaKQCiAEBmAEJuAEHyAEM2AED6AEBiAIBqAIDuALCxJ31BcACAQ&sid=aa44f8de759b2bef3e29506e3daec5f2&all_sr_blocks=5855401_238769769_0_2_0&checkin=2020-05-21&checkout=2020-05-22&dest_id=20015732&dest_type=city&group_adults=2&group_children=0&hapos=14&highlighted_blocks=5855401_238769769_0_2_0&hpos=14&no_rooms=1&sr_order=popularity&sr_pri_blocks=5855401_238769769_0_2_0__27900&srepoch=1588086755&srpvid=93ff6af1efb200d4&ucfs=1&from=searchresults 29 | ;highlight_room=#hotelTmpl" 30 | "Courtyard by Marriott San Francisco Union Square","Union Square, San Francisco Show on map","₹ 15,173","1 night, 2 adults","King Room","1 extra-large double bed","8.2","Very good","309 reviews","https://www.booking.com/hotel/us/courtyard-by-marriott-san-francisco-union-square.en-gb.html?label=gen173nr-1DCAEoggI46AdIM1gEaKQCiAEBmAEJuAEHyAEM2AED6AEBiAIBqAIDuALCxJ31BcACAQ&sid=aa44f8de759b2bef3e29506e3daec5f2&all_sr_blocks=52833204_99469843_0_34_0&checkin=2020-05-21&checkout=2020-05-22&dest_id=20015732&dest_type=city&group_adults=2&group_children=0&hapos=15&highlighted_blocks=52833204_99469843_0_34_0&hpos=15&no_rooms=1&sr_order=popularity&sr_pri_blocks=52833204_99469843_0_34_0__19900&srepoch=1588086755&srpvid=93ff6af1efb200d4&ucfs=1&from=searchresults 31 | ;highlight_room=#hotelTmpl" 32 | "Hotel Beresford","Union Square, San Francisco Show on map","₹ 6,481","1 night, 2 adults","Twin Room with Two Twin Beds","2 single beds","7.4","Good","5,820 reviews","https://www.booking.com/hotel/us/beresford.en-gb.html?label=gen173nr-1DCAEoggI46AdIM1gEaKQCiAEBmAEJuAEHyAEM2AED6AEBiAIBqAIDuALCxJ31BcACAQ&sid=aa44f8de759b2bef3e29506e3daec5f2&all_sr_blocks=5984602_124625155_0_1_0&checkin=2020-05-21&checkout=2020-05-22&dest_id=20015732&dest_type=city&group_adults=2&group_children=0&hapos=16&highlighted_blocks=5984602_124625155_0_1_0&hpos=16&no_rooms=1&sr_order=popularity&sr_pri_blocks=5984602_124625155_0_1_0__8500&srepoch=1588086755&srpvid=93ff6af1efb200d4&ucfs=1&from=searchresults 33 | ;highlight_room=#hotelTmpl" 34 | "Greenwich Inn","Marina District, San Francisco Show on map","₹ 8,006","1 night, 2 adults","Premium Queen Room - Non-Smoking","1 large double bed","7.9","Good","1,127 reviews","https://www.booking.com/hotel/us/greenwich-inn.en-gb.html?label=gen173nr-1DCAEoggI46AdIM1gEaKQCiAEBmAEJuAEHyAEM2AED6AEBiAIBqAIDuALCxJ31BcACAQ&sid=aa44f8de759b2bef3e29506e3daec5f2&all_sr_blocks=5618601_201211484_0_0_0&checkin=2020-05-21&checkout=2020-05-22&dest_id=20015732&dest_type=city&group_adults=2&group_children=0&hapos=17&highlighted_blocks=5618601_201211484_0_0_0&hpos=17&no_rooms=1&sr_order=popularity&sr_pri_blocks=5618601_201211484_0_0_0__10500&srepoch=1588086755&srpvid=93ff6af1efb200d4&ucfs=1&from=searchresults 35 | ;highlight_room=#hotelTmpl" 36 | "Grant Hotel","Union Square, San Francisco Show on map","₹ 10,598","1 night, 2 adults","Queen Room","1 large double bed","7.7","Good","2,005 reviews","https://www.booking.com/hotel/us/grant.en-gb.html?label=gen173nr-1DCAEoggI46AdIM1gEaKQCiAEBmAEJuAEHyAEM2AED6AEBiAIBqAIDuALCxJ31BcACAQ&sid=aa44f8de759b2bef3e29506e3daec5f2&all_sr_blocks=5602001_213705637_0_0_0&checkin=2020-05-21&checkout=2020-05-22&dest_id=20015732&dest_type=city&group_adults=2&group_children=0&hapos=18&highlighted_blocks=5602001_213705637_0_0_0&hpos=18&no_rooms=1&sr_order=popularity&sr_pri_blocks=5602001_213705637_0_0_0__13900&srepoch=1588086755&srpvid=93ff6af1efb200d4&ucfs=1&from=searchresults 37 | ;highlight_room=#hotelTmpl" 38 | "Galleria Park, a Joie de Vivre Hotel","Financial District, San Francisco Show on map","₹ 12,123","1 night, 2 adults","Deluxe Room with One Double Bed","1 double bed","8.7","Fabulous","591 reviews","https://www.booking.com/hotel/us/galleria-park.en-gb.html?label=gen173nr-1DCAEoggI46AdIM1gEaKQCiAEBmAEJuAEHyAEM2AED6AEBiAIBqAIDuALCxJ31BcACAQ&sid=aa44f8de759b2bef3e29506e3daec5f2&all_sr_blocks=5619207_205963965_2_40_0&checkin=2020-05-21&checkout=2020-05-22&dest_id=20015732&dest_type=city&group_adults=2&group_children=0&hapos=19&highlighted_blocks=5619207_205963965_2_40_0&hpos=19&no_rooms=1&sr_order=popularity&sr_pri_blocks=5619207_205963965_2_40_0__15900&srepoch=1588086755&srpvid=93ff6af1efb200d4&ucfs=1&from=searchresults 39 | ;highlight_room=#hotelTmpl" 40 | "Hyatt Centric Fisherman's Wharf San Francisco","Fisherman's Wharf, San Francisco Show on map","₹ 16,698","1 night, 2 adults","Queen Room with Accessible Shower - Disability Accessible","1 large double bed","8.2","Very good","879 reviews","https://www.booking.com/hotel/us/hyatt-fisherman-s-wharf.en-gb.html?label=gen173nr-1DCAEoggI46AdIM1gEaKQCiAEBmAEJuAEHyAEM2AED6AEBiAIBqAIDuALCxJ31BcACAQ&sid=aa44f8de759b2bef3e29506e3daec5f2&all_sr_blocks=37440708_258634363_2_2_0&checkin=2020-05-21&checkout=2020-05-22&dest_id=20015732&dest_type=city&group_adults=2&group_children=0&hapos=20&highlighted_blocks=37440708_258634363_2_2_0&hpos=20&no_rooms=1&sr_order=popularity&sr_pri_blocks=37440708_258634363_2_2_0__21900&srepoch=1588086755&srpvid=93ff6af1efb200d4&ucfs=1&from=searchresults 41 | ;highlight_room=#hotelTmpl" 42 | "Chancellor Hotel on Union Square","Union Square, San Francisco Show on map","₹ 7,549","1 night, 2 adults","Deluxe Two Twin Room - Hearing Access","2 single beds","8.6","Fabulous","1,649 reviews","https://www.booking.com/hotel/us/chancellor-on-union-square.en-gb.html?label=gen173nr-1DCAEoggI46AdIM1gEaKQCiAEBmAEJuAEHyAEM2AED6AEBiAIBqAIDuALCxJ31BcACAQ&sid=aa44f8de759b2bef3e29506e3daec5f2&all_sr_blocks=5863416_206182325_0_0_0&checkin=2020-05-21&checkout=2020-05-22&dest_id=20015732&dest_type=city&group_adults=2&group_children=0&hapos=21&highlighted_blocks=5863416_206182325_0_0_0&hpos=21&no_rooms=1&sr_order=popularity&sr_pri_blocks=5863416_206182325_0_0_0__9900&srepoch=1588086755&srpvid=93ff6af1efb200d4&ucfs=1&from=searchresults 43 | ;highlight_room=#hotelTmpl" 44 | "Seaside Inn","Marina District, San Francisco Show on map","₹ 9,455","1 night, 2 adults","Double Room with One Double Bed","1 double bed","8.2","Very good","1,213 reviews","https://www.booking.com/hotel/us/sea-side-inn.en-gb.html?label=gen173nr-1DCAEoggI46AdIM1gEaKQCiAEBmAEJuAEHyAEM2AED6AEBiAIBqAIDuALCxJ31BcACAQ&sid=aa44f8de759b2bef3e29506e3daec5f2&all_sr_blocks=41124204_174154730_0_1_0&checkin=2020-05-21&checkout=2020-05-22&dest_id=20015732&dest_type=city&group_adults=2&group_children=0&hapos=22&highlighted_blocks=41124204_174154730_0_1_0&hpos=22&no_rooms=1&sr_order=popularity&sr_pri_blocks=41124204_174154730_0_1_0__12400&srepoch=1588086755&srpvid=93ff6af1efb200d4&ucfs=1&from=searchresults 45 | ;highlight_room=#hotelTmpl" 46 | "Hyatt Regency San Francisco","Financial District, San Francisco Show on map","₹ 15,936","1 night, 2 adults","Double Room with Two Double Beds - Disability Access","2 double beds","8.5","Very good","2,166 reviews","https://www.booking.com/hotel/us/hyatt-regency-san-francisco.en-gb.html?label=gen173nr-1DCAEoggI46AdIM1gEaKQCiAEBmAEJuAEHyAEM2AED6AEBiAIBqAIDuALCxJ31BcACAQ&sid=aa44f8de759b2bef3e29506e3daec5f2&all_sr_blocks=18223013_258631938_2_2_0&checkin=2020-05-21&checkout=2020-05-22&dest_id=20015732&dest_type=city&group_adults=2&group_children=0&hapos=23&highlighted_blocks=18223013_258631938_2_2_0&hpos=23&no_rooms=1&sr_order=popularity&sr_pri_blocks=18223013_258631938_2_2_0__20900&srepoch=1588086755&srpvid=93ff6af1efb200d4&ucfs=1&from=searchresults 47 | ;highlight_room=#hotelTmpl" 48 | "Queen Anne","Japantown, San Francisco Show on map","₹ 9,073","1 night, 2 adults","Standard King Room","1 extra-large double bed","8.5","Very good","437 reviews","https://www.booking.com/hotel/us/the-queen-ann.en-gb.html?label=gen173nr-1DCAEoggI46AdIM1gEaKQCiAEBmAEJuAEHyAEM2AED6AEBiAIBqAIDuALCxJ31BcACAQ&sid=aa44f8de759b2bef3e29506e3daec5f2&all_sr_blocks=5775415_226065072_0_1_0&checkin=2020-05-21&checkout=2020-05-22&dest_id=20015732&dest_type=city&group_adults=2&group_children=0&hapos=24&highlighted_blocks=5775415_226065072_0_1_0&hpos=24&no_rooms=1&sr_order=popularity&sr_pri_blocks=5775415_226065072_0_1_0__11900&srepoch=1588086755&srpvid=93ff6af1efb200d4&ucfs=1&from=searchresults 49 | ;highlight_room=#hotelTmpl" 50 | "JW Marriott San Francisco Union Square","Union Square, San Francisco Show on map","₹ 22,036","1 night, 2 adults","Queen Room with Two Queen Beds","2 large double beds","8.4","Very good","380 reviews","https://www.booking.com/hotel/us/jw-marriott-san-francisco-union-square.en-gb.html?label=gen173nr-1DCAEoggI46AdIM1gEaKQCiAEBmAEJuAEHyAEM2AED6AEBiAIBqAIDuALCxJ31BcACAQ&sid=aa44f8de759b2bef3e29506e3daec5f2&all_sr_blocks=26287908_246425407_0_2_0&checkin=2020-05-21&checkout=2020-05-22&dest_id=20015732&dest_type=city&group_adults=2&group_children=0&hapos=25&highlighted_blocks=26287908_246425407_0_2_0&hpos=25&no_rooms=1&sr_order=popularity&sr_pri_blocks=26287908_246425407_0_2_0__28900&srepoch=1588086755&srpvid=93ff6af1efb200d4&ucfs=1&from=searchresults 51 | ;highlight_room=#hotelTmpl" 52 | "Travelodge by Wyndham San Francisco Bay","Marina District, San Francisco Show on map","₹ 8,166","1 night, 2 adults","Double Room with Two Double Beds - Non-Smoking","2 double beds","7.5","Good","1,348 reviews","https://www.booking.com/hotel/us/travelodge-by-the-bay.en-gb.html?label=gen173nr-1DCAEoggI46AdIM1gEaKQCiAEBmAEJuAEHyAEM2AED6AEBiAIBqAIDuALCxJ31BcACAQ&sid=aa44f8de759b2bef3e29506e3daec5f2&all_sr_blocks=18130123_243790647_2_0_0&checkin=2020-05-21&checkout=2020-05-22&dest_id=20015732&dest_type=city&group_adults=2&group_children=0&hapos=26&highlighted_blocks=18130123_243790647_2_0_0&hpos=26&no_rooms=1&sr_order=popularity&sr_pri_blocks=18130123_243790647_2_0_0__10710&srepoch=1588086755&srpvid=93ff6af1efb200d4&ucfs=1&from=searchresults 53 | ;highlight_room=#hotelTmpl" 54 | --------------------------------------------------------------------------------