GitHub - efazati/tripadvisor-crawler: Tripadvisor crawler to generate kml with images

1 min read Original article ↗

In this project you should select countries and after that this project will download all resturant and things to do also you can generate kml from that things for import to google map

   $ git clone https://github.com/efazati/tripadvisor-crawler.git
   $ cd tripadvisor-crawler
   from crawler import get_cities, get_detail_of_city

   def main():
      countries = [
         {'index': 'g293998', 'country': 'Iran'},
         {'index': 'g293860', 'country': 'India'},
         {'index': 'g294211', 'country': 'China'},
         {'index': 'g187275', 'country': 'Germany'},
         {'index': 'g187768', 'country': 'Italy'},
         {'index': 'g294459', 'country': 'Russia'},
         {'index': 'g293969', 'country': 'Turkey'},
         {'index': 'g293951', 'country': 'Malaysia'},
      ]
      cities = []
      for country in countries:
         cities += get_cities(country)

      for item in cities:
         get_detail_of_city(item)
      return