Skip to content

Latest commit

 

History

History
154 lines (121 loc) · 3.51 KB

pro-docs.md

File metadata and controls

154 lines (121 loc) · 3.51 KB

🤔 Pro Version FAQs

❓ How can I filter google map search results?

A: You have the option to apply filters to your Google Maps search results using the following parameters:

  1. min_rating
  2. min_reviews
  3. max_reviews
  4. has_phone
  5. has_website

To specify filters, open src/config.py and specify your filters.

The Following example will scrape only those listings with a minimum of 5 reviews, a maximum of 100 reviews, and a phone number.

queries = [
    {
        "keyword": "restaurants in delhi",
        "min_reviews": 5 ,
        "max_reviews": 100,
        "has_phone": True,
    },
]

❓ How to sort by reviews, rating, or title?

To sort your results by reviews, rating, or title, follow these steps:

Open the file src/config.py and set the sort key.

For example, to sort by reviews in descending order, modify the code as follows:

queries = [
    {
        "keyword": "stupas in kathmandu",
        "sort": {
            "by": "reviews",
            "order": "desc",
        },
    },
]

You can sort by any field, such as reviews, main_category, title, rating, or any other field. Here are some common sort examples:

  1. Sort by reviews count in descending order:
        "sort": {
            "by": "reviews",
            "order": "desc",
        },
  1. Sort by main_category in ascending order:
        "sort": {
            "by": "main_category",
            "order": "asc",
        },
  1. Sort by title in ascending order:
        "sort": {
            "by": "title",
            "order": "asc",
        },
  1. Sort by rating in descending order:
        "sort": {
            "by": "rating",
            "order": "desc",
        },

❓ How to select specific Fields?

If you want to select specific fields to be output in your CSV and JSON files, you can do so by following these steps:

  1. Open src/config.py.
  2. Modify the select key to include the fields you want to select.

For example, if you want to select "title", "link", "main_category", "rating", "reviews", "website", "phone", and "address", you should adjust the code as follows:

queries = [
    {
        "keyword": "stupas in kathmandu",
        "select": ["title", "link", "main_category", "rating", "reviews",  "website", "phone" , "address"],
    },
]

You are free to select any field. Here are a couple of common field selections:

  1. Standard field selection:
        "select": ["title", "link", "main_category", "rating", "reviews",  "website", "phone" , "address"],
  1. Selection of all fields (Default):
        "select": "ALL",

❓ What Data Points Are Scraped by the Pro Version?

The Pro Version scrapes the following data points:

  1. Title
  2. Link
  3. Main Category
  4. Rating
  5. Reviews
  6. Website
  7. Phone
  8. Address
  9. Place ID
  10. Status
  11. Price Range
  12. Description
  13. Reviews per Rating
  14. Reviews Link
  15. Thumbnail
  16. Images
  17. Hours
  18. Menu
  19. Order Online Links
  20. Reservations
  21. Owner
  22. Categories
  23. Coordinates
  24. Plus Code
  25. Complete Address
  26. Time Zone
  27. About
  28. User Reviews
  29. CID
  30. Data ID

You can view sample leads scraped by the Pro Version here

Pro Lead Sample