← เครื่องมือฟรีทั้งหมด
เครื่องมือฟรี

เครื่องมือดึงข้อมูล Google Maps ฟรี

ส่งออกธุรกิจจากการค้นหาใดก็ได้ใน Google Maps เป็น CSV หรือ Google Sheets: ชื่อ คะแนน รีวิว โทรศัพท์ เว็บไซต์ ที่อยู่ และอื่นๆ บุ๊กมาร์กเดียว ไม่ต้องสมัคร ไม่ต้องติดตั้ง

1. เพิ่มบุ๊กมาร์ก

📍 ScrapePass - Google Maps Leadsลากฉันขึ้นไปที่แถบบุ๊กมาร์ก ↑

ลากปุ่มนี้ไปที่แถบบุ๊กมาร์ก

ไม่เห็นแถบบุ๊กมาร์กใช่ไหม กด Ctrl+Shift+B (บน Mac กด ⌘+Shift+B) ลากไม่ได้ใช่ไหม สร้างบุ๊กมาร์กใหม่ ตั้งชื่อว่า “📍 ScrapePass - Google Maps Leads” แล้ววางโค้ดนี้เป็น URL:

เวอร์ชัน 1.1.0 มีบุ๊กมาร์กแล้วใช่ไหม แผงจะแสดงเวอร์ชันข้าง “by ScrapePass” หากเก่ากว่า ให้ลากปุ่มอีกครั้งเพื่อรับเวอร์ชันนี้

2. ใช้บน Google Maps

  1. 1เปิด Google Maps แล้วค้นหาประเภทธุรกิจในสถานที่หนึ่ง เช่น ทันตแพทย์ กรุงเทพ
  2. 2เมื่อรายการสถานที่แสดงทางซ้าย ให้คลิก 📍 ScrapePass - Google Maps Leads ในแถบบุ๊กมาร์ก
  3. 3แผงเล็ก ๆ จะเปิดขึ้นและถามว่า Ready? กด Go แผงจะเปิดสถานที่แต่ละแห่งในรายการทีละแห่ง แล้วอ่านเบอร์โทร เว็บไซต์ และที่อยู่เต็ม ไฮไลต์สีม่วงจะแสดงสถานที่ที่กำลังอ่าน และรายการจะเลื่อนเองเพื่อโหลดเพิ่ม
  4. 4เมื่อรายการไม่มีสถานที่เพิ่มแล้ว แผงจะขอให้คุณลากหรือซูมแผนที่เพื่อโหลดเพิ่ม (กด ค้นหาในบริเวณนี้ ถ้ามีปุ่มขึ้นมา) สถานที่ใหม่จะทำให้การทำงานดำเนินต่อ กด Finish เมื่อได้พอแล้ว
  5. 5กด Download CSV เพื่อบันทึกไฟล์เมื่อคุณได้ข้อมูลเพียงพอ เปิดได้ใน Excel และ Google Sheets

สิ่งที่คุณจะได้

หนึ่งแถวต่อหนึ่งสถานที่ พร้อมคอลัมน์เหล่านี้ ตัวอย่างเป็นข้อมูลสมมติ

คอลัมน์สิ่งที่มีตัวอย่าง
nameชื่อธุรกิจLone Star Plumbing Co.
categoryหมวดหมู่หลักที่แสดงบน Google MapsPlumber
ratingคะแนนดาวเฉลี่ย4.8
reviewsจำนวนรีวิว1232
phoneเบอร์โทรศัพท์ จากหน้าของสถานที่+1 512-555-0142
websiteเว็บไซต์ของธุรกิจ จากหน้าของสถานที่https://lonestarplumbing.example/
addressที่อยู่เต็ม จากหน้าของสถานที่1500 Congress Ave, Austin, TX 78701, United States
hoursสถานะเปิดทำการขณะรันOpen · Closes 6 PM
latitude, longitudeตำแหน่งของสถานที่บนแผนที่30.2747, -97.7404
maps_urlลิงก์ไปยังสถานที่บน Google Mapshttps://www.google.com/maps/place/…

คำถาม

ฟรีจริงไหม

ใช่ ไม่ต้องมีบัญชี ไม่จำกัดจำนวนครั้ง และไม่มีอะไรต้องติดตั้ง เป็นบุ๊กมาร์กที่รันสคริปต์เล็กๆ บนหน้า Google Maps ที่คุณเปิดอยู่

ข้อมูลของฉันถูกส่งไปที่ไหนไหม

ไม่ สคริปต์อ่านรายการและหน้าของแต่ละสถานที่ในเบราว์เซอร์ของคุณเอง แล้วสร้างไฟล์ CSV ที่นั่น ไม่มีอะไรถูกส่งไปยัง ScrapePass หรือใครอื่น คุณอ่านซอร์สโค้ดทั้งหมดได้ด้านล่าง

การค้นหาครั้งเดียวได้กี่สถานที่

Google Maps แสดงได้ถึงประมาณ 120 แห่งต่อการค้นหา เมื่อรายการหมด ให้ลากหรือซูมแผนที่ (กด “ค้นหาในบริเวณนี้” ถ้ามีปุ่มขึ้นมา) แล้วบุ๊กมาร์กจะทำต่อกับสถานที่ใหม่ โดยข้ามแห่งที่มีอยู่แล้ว ถ้า Google Maps แจ้งว่าคุณเห็นมุมมองแบบจำกัด ให้ลงชื่อเข้าใช้ Google เพื่อโหลดรายการทั้งหมด

ทำไมโทรศัพท์และเว็บไซต์บางรายการจึงหายไป

บางธุรกิจไม่ได้ใส่เบอร์โทรหรือเว็บไซต์ไว้ใน Google Maps ถ้าหน้าของสถานที่เปิดไม่ทันเวลา แถวของสถานที่นั้นจะเก็บข้อมูลตามที่รายการแสดง

ทำไมบางครั้งถึงหยุดพัก?

หลังจากเปิดสถานที่ติดต่อกันหลายแห่ง Google Maps จะเปิดช้าลง แผงจะแจ้งให้ทราบ รอสักครู่แล้วทำต่อ สถานที่ที่พลาดไปจะได้ลองอีกครั้งตอนท้ายรายการ

ดึงอีเมลได้ไหม

ไม่ Google Maps ไม่แสดงอีเมล CSV มีเว็บไซต์ของแต่ละธุรกิจ ซึ่งคุณหาข้อมูลติดต่อได้จากที่นั่น

ใช้งานในภาษาและประเทศอื่นได้ไหม

ได้ ใช้ได้บน Google Maps ทุกภาษาและทุกโดเมนของ Google (google.com, google.co.uk, google.co.th เป็นต้น) ค่าต่างๆ เช่น หมวดหมู่และเวลาทำการจะเป็นภาษาที่ Google Maps แสดง

ใช้ได้ในเบราว์เซอร์ใดบ้าง

เบราว์เซอร์บนคอมพิวเตอร์ที่มีแถบบุ๊กมาร์ก เช่น Chrome, Edge และ Brave ในหน้าต่างที่กว้างอย่างน้อย 1200 พิกเซล (ขยายเต็มจอหรือซูมหน้าออก) บนโทรศัพท์และแท็บเล็ตเรียกใช้บุ๊กมาร์กแบบนี้ได้ยาก จึงควรใช้คอมพิวเตอร์

ถ้าหยุดทำงานล่ะ

Google Maps เปลี่ยนหน้าเป็นครั้งคราว ซึ่งอาจทำให้บุ๊กมาร์กหาสถานที่ไม่พบหรือเติมบางคอลัมน์ผิด กด Report a problem ในแผง หรือติดต่อเรา พร้อมการค้นหาที่คุณใช้และภาพหน้าจอของแผง เมื่อแก้ไขแล้ว ให้ลากบุ๊กมาร์กใหม่จากหน้านี้ไปที่แถบบุ๊กมาร์กอีกครั้ง

ถ้าต้องการอีเมลหรือรายละเอียดเพิ่มล่ะ?

เทมเพลต Google Maps ของ ScrapePass ยังอ่านเวลาทำการของแต่ละวันและ Plus Code และส่งออกเป็น Excel, CSV หรือ JSON ได้ ส่วนส่วนขยาย ScrapePass ก็เข้าไปที่แต่ละเว็บไซต์และเก็บอีเมลได้ด้วย

เก็บเฉพาะข้อมูลที่คุณมีสิทธิ์ใช้ และปฏิบัติตามข้อกำหนดของ Google และกฎหมายความเป็นส่วนตัวในที่ที่คุณทำงาน

ดูซอร์สโค้ด

นี่คือทุกอย่างที่บุ๊กมาร์กรัน ทำงานเฉพาะบนหน้า Google Maps ที่คุณเปิดอยู่และไม่ส่งอะไรไปที่ไหน โปรเจกต์นี้อยู่บน GitHub ด้วย

(function () {
  var KEY = '__scrapepassMapsLeads';
  var VERSION = '1.1.0';
  if (window[KEY]) window[KEY].close();

  var onMaps = /(^|\.)google\.[a-z.]+$/.test(location.hostname) && location.pathname.indexOf('/maps') === 0;
  if (!onMaps || !document.querySelector('div[role="feed"]')) {
    alert('Open Google Maps and search for a kind of business, for example "dentist in Chicago". When the list of places shows on the left, click this bookmark again.');
    return;
  }

  var HOME = 'https://scrapepass.com/';
  var UTM = '?utm_source=bookmarklet&utm_medium=tool&utm_campaign=google-maps-leads';
  var GITHUB = 'https://github.com/ScrapePass/google-maps-scraper-one-click';
  var YOUTUBE = 'https://www.youtube.com/@scrapepass';
  var COLS = ['name', 'category', 'rating', 'reviews', 'phone', 'website', 'address', 'hours', 'latitude', 'longitude', 'maps_url'];
  var PANEL = 'div[role="main"][aria-label]';
  var READY = 'button[data-item-id="address"], button[data-item-id^="phone:tel:"], a[data-item-id="authority"], button.DkEaL';

  var rows = [];
  var byKey = {};
  var todo = [];
  var retry = [];
  var running = false;
  var asking = false;
  var idle = 0;
  var timer = 0;
  var opened = 0;
  var current = null;

  function el(tag, css, text) {
    var e = document.createElement(tag);
    if (css) e.style.cssText = css;
    if (text != null) e.textContent = text;
    return e;
  }
  function text(root, sel) {
    var e = root.querySelector(sel);
    return e ? e.textContent.replace(/\s+/g, ' ').trim() : '';
  }
  function parts(line) {
    return line ? line.textContent.split('·').map(function (s) { return s.replace(/\s+/g, ' ').trim(); }).filter(Boolean) : [];
  }
  function keyOf(href) {
    var id = /!1s(0x[0-9a-f]+:0x[0-9a-f]+)/i.exec(href);
    return id ? id[1] : href.split('?')[0];
  }

  function readCard(card) {
    var link = card.querySelector('a.hfpxzc');
    if (!link || !link.href) return null;
    var url = link.href.split('?')[0];
    var lines = card.querySelectorAll('.W4Efsd .W4Efsd');
    var info = parts(lines[0]);
    var phone = text(card, '.UsdlK');
    var hours = parts(lines[1]).filter(function (p) { return p !== phone; }).join(' · ');
    var site = card.querySelector('a.lcr4fd') || card.querySelector('a[data-value="Website"]');
    var ll = /!3d(-?[\d.]+)!4d(-?[\d.]+)/.exec(url);
    return {
      name: link.getAttribute('aria-label') || text(card, '.qBF1Pd'),
      category: info.length ? info[0] : '',
      rating: text(card, '.MW4etd').replace(',', '.'),
      reviews: text(card, '.UY7F9').replace(/\D/g, ''),
      phone: phone,
      website: site ? clean(site.href) : '',
      address: info.length > 1 ? info[info.length - 1] : '',
      hours: hours,
      latitude: ll ? ll[1] : '',
      longitude: ll ? ll[2] : '',
      maps_url: url
    };
  }

  function collect() {
    var links = document.querySelectorAll('div[role="feed"] a.hfpxzc');
    var added = 0;
    for (var i = 0; i < links.length; i++) {
      var card = links[i].closest('.Nv2PK') || links[i].parentElement;
      var r = card && readCard(card);
      if (!r) continue;
      var k = keyOf(links[i].href);
      if (byKey[k]) continue;
      byKey[k] = r;
      rows.push(r);
      todo.push(k);
      added++;
    }
    return added;
  }
  function linkFor(k) {
    var links = document.querySelectorAll('div[role="feed"] a.hfpxzc');
    for (var i = 0; i < links.length; i++) if (keyOf(links[i].href) === k) return links[i];
    return null;
  }

  function panelFor(name) {
    var panels = document.querySelectorAll(PANEL);
    for (var i = 0; i < panels.length; i++) {
      if (panels[i].getAttribute('aria-label').trim() === name && panels[i].querySelector(READY)) return panels[i];
    }
    return null;
  }
  function readPanel(panel, r) {
    var cat = text(panel, 'button.DkEaL');
    var phone = panel.querySelector('button[data-item-id^="phone:tel:"]');
    var site = panel.querySelector('a[data-item-id="authority"]');
    var address = panel.querySelector('button[data-item-id="address"]');
    if (cat) r.category = cat;
    if (phone) r.phone = text(phone, '.Io6YTe') || phone.getAttribute('data-item-id').replace('phone:tel:', '');
    if (site && site.href) r.website = clean(site.href);
    if (address) r.address = text(address, '.Io6YTe') || (address.getAttribute('aria-label') || '').replace(/^[^:]*:\s*/, '').trim();
  }

  function clean(url) {
    var q = url.split('#')[0].split('?');
    var keep = (q[1] || '').split('&').filter(function (p) { return p && !/^(utm_[a-z]+|gclid|fbclid|y_source)=/i.test(p); });
    return q[0] + (keep.length ? '?' + keep.join('&') : '');
  }

  function paint(card) {
    if (current) plain(current);
    current = card;
    if (!card) return;
    card.style.outline = '2px solid #4f46e5';
    card.style.outlineOffset = '-2px';
    card.style.background = 'rgba(79,70,229,.12)';
  }
  function plain(card) {
    card.style.outline = '';
    card.style.outlineOffset = '';
    card.style.background = '';
  }

  var search = /\/maps\/search\/([^/@?]+)/.exec(location.pathname);
  var words = search ? decodeURIComponent(search[1].replace(/\+/g, ' ')).replace(/[\\/:*?"<>|\s]+/g, ' ').trim().slice(0, 60) : '';
  var file = 'ScrapePass Google Maps Leads' + (words ? ' - ' + words : '') + '.csv';

  function cell(v) {
    v = String(v == null ? '' : v);
    if (/^[=@\t\r]/.test(v) || /^[+-]/.test(v) && /[^\d\s().+-]/.test(v)) v = "'" + v;
    return /[",\r\n]/.test(v) ? '"' + v.replace(/"/g, '""') + '"' : v;
  }
  function table() {
    return [COLS.join(',')].concat(rows.map(function (r) {
      return COLS.map(function (c) { return cell(r[c]); }).join(',');
    })).join('\r\n');
  }

  function svg(tag, attrs, parent) {
    var e = document.createElementNS('http://www.w3.org/2000/svg', tag);
    for (var k in attrs) e.setAttribute(k, attrs[k]);
    if (parent) parent.appendChild(e);
    return e;
  }
  function logo(size) {
    var root = svg('svg', { viewBox: '0 0 128 128', width: size, height: size, 'aria-hidden': 'true' });
    var grad = svg('linearGradient', { id: 'scrapepass-maps-logo', x1: 0, y1: 0, x2: 1, y2: 1 }, svg('defs', {}, root));
    svg('stop', { offset: 0, 'stop-color': '#7c3aed' }, grad);
    svg('stop', { offset: 1, 'stop-color': '#4f46e5' }, grad);
    svg('rect', { width: 128, height: 128, rx: 28, fill: 'url(#scrapepass-maps-logo)' }, root);
    svg('rect', { x: 20, y: 26, width: 70, height: 18, rx: 9, fill: '#fff' }, root);
    svg('rect', { x: 20, y: 55, width: 70, height: 18, rx: 9, fill: '#fff' }, root);
    svg('rect', { x: 20, y: 84, width: 46, height: 18, rx: 9, fill: '#fff' }, root);
    svg('path', { d: 'M70 66 112 92l-17 4 9.5 18.5-10 4.8-9.5-18.5-13 12z', fill: '#fde68a', stroke: '#4c1d95', 'stroke-width': 5, 'stroke-linejoin': 'round' }, root);
    root.style.cssText = 'flex:none;display:block;';
    return root;
  }

  var GITHUB_LOGO = 'M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12';
  var YOUTUBE_LOGO = 'M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z';
  function brandIcon(d, color) {
    var root = svg('svg', { viewBox: '0 0 24 24', width: 14, height: 14, 'aria-hidden': 'true' });
    svg('path', { d: d, fill: color }, root);
    root.style.cssText = 'display:inline-block;vertical-align:-2px;margin-right:4px;';
    return root;
  }

  var PURPLE = '#4f46e5';
  function link(label, href, css, icon) {
    var a = el('a', 'color:' + PURPLE + ';font-weight:600;white-space:nowrap;' + (css || ''));
    if (icon) a.appendChild(icon);
    a.appendChild(document.createTextNode(label));
    a.href = href;
    a.target = '_blank';
    a.rel = 'noopener';
    return a;
  }
  var box = el('div', 'position:fixed;top:72px;right:16px;z-index:2147483647;width:340px;background:#fff;color:#1f2328;border-radius:14px;box-shadow:0 8px 32px rgba(0,0,0,.25);font:15px/1.45 Roboto,Arial,sans-serif;padding:18px;');
  var head = el('div', 'display:flex;align-items:center;gap:10px;margin-bottom:12px;');
  head.appendChild(logo(36));
  var titles = el('div', 'flex:1;min-width:0;');
  titles.appendChild(el('div', 'font-size:18px;font-weight:700;line-height:1.2;', 'Google Maps Leads'));
  var by = el('div', 'font-size:13px;color:#57606a;', 'by ');
  by.appendChild(link('ScrapePass', HOME + UTM, 'text-decoration:none;'));
  by.appendChild(document.createTextNode(' · v' + VERSION));
  titles.appendChild(by);
  head.appendChild(titles);
  var x = el('button', 'border:0;background:none;font-size:24px;line-height:1;cursor:pointer;color:#57606a;padding:0 4px;align-self:flex-start;', '×');
  x.title = 'Close';
  head.appendChild(x);
  var dial = el('div', 'position:relative;width:128px;height:128px;margin:4px auto 10px;');
  var ring = el('div', 'position:absolute;inset:0;box-sizing:border-box;border-radius:50%;border:8px solid rgba(79,70,229,.15);');
  var spin = null;
  var middle = el('div', 'position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;');
  var ready = el('div', 'font-size:26px;font-weight:700;color:' + PURPLE + ';', 'Ready?');
  var count = el('div', 'display:none;font-size:38px;font-weight:700;line-height:1;', '0');
  var unit = el('div', 'display:none;font-size:13px;color:#57606a;margin-top:4px;', 'leads');
  middle.appendChild(ready);
  middle.appendChild(count);
  middle.appendChild(unit);
  dial.appendChild(ring);
  dial.appendChild(middle);
  var place = el('div', 'height:20px;margin-bottom:2px;font-size:14px;font-weight:600;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;');
  var STATUS = 'font-size:15px;color:#57606a;text-align:center;margin-bottom:14px;';
  var ASKING = 'font-size:15px;color:#1f2328;text-align:left;margin-bottom:14px;padding:10px 12px;border-radius:8px;background:rgba(79,70,229,.1);';
  var status = el('div', STATUS, 'Press Go to read every place in this list.');
  var BTN = 'display:block;width:100%;border:1px solid ' + PURPLE + ';background:' + PURPLE + ';color:#fff;border-radius:8px;padding:11px 12px;font:600 15px Roboto,Arial,sans-serif;cursor:pointer;';
  var go = el('button', BTN, 'Go');
  var fin = el('button', BTN + 'display:none;margin-bottom:8px;background:#fff;color:' + PURPLE + ';', 'Finish');
  var csv = el('button', BTN + 'display:none;', 'Download CSV');
  var buttons = el('div');
  buttons.appendChild(go);
  buttons.appendChild(fin);
  buttons.appendChild(csv);
  var foot = el('div', 'margin-top:14px;padding-top:12px;border-top:1px solid #eaeef2;font-size:13px;color:#57606a;');
  foot.appendChild(document.createTextNode('Need emails too? '));
  foot.appendChild(link('Try the ScrapePass extension, the free web scraper', HOME + UTM));
  var help = el('div', 'margin-top:8px;');
  help.appendChild(document.createTextNode('Something not working? '));
  help.appendChild(link('Report a problem', HOME + 'contact' + UTM + '&utm_content=v' + VERSION));
  foot.appendChild(help);
  var more = el('div', 'margin-top:8px;');
  more.appendChild(link('How to use', HOME + 'tools/google-maps-scraper' + UTM));
  more.appendChild(document.createTextNode(' · '));
  more.appendChild(link('More free tools', HOME + 'free-tools' + UTM));
  foot.appendChild(more);
  var social = el('div', 'margin-top:8px;');
  social.appendChild(link('GitHub', GITHUB, '', brandIcon(GITHUB_LOGO, '#1f2328')));
  social.appendChild(document.createTextNode(' · '));
  social.appendChild(link('Tutorials on YouTube', YOUTUBE, '', brandIcon(YOUTUBE_LOGO, '#FF0000')));
  foot.appendChild(social);
  [head, dial, place, status, buttons, foot].forEach(function (n) { box.appendChild(n); });
  document.body.appendChild(box);

  function later(fn, ms) {
    clearTimeout(timer);
    timer = setTimeout(fn, ms);
  }

  var lost = 0;

  function next() {
    if (!running) return;
    var feed = document.querySelector('div[role="feed"]');
    if (!feed) {
      if (!asking && ++lost > 6) return ask('The list of places is gone. Drag or zoom the map to load places (press “Search this area” if it shows), or press Finish.');
      if (!asking) status.textContent = 'Waiting for the list of places…';
      return later(next, 1500);
    }
    lost = 0;
    var added = collect();
    if (todo.length) {
      idle = 0;
      if (asking) unask();
      return open(todo.shift());
    }
    if (asking) {
      feed.scrollTop = feed.scrollHeight;
      return later(next, 1500);
    }
    idle = added ? 0 : idle + 1;
    var note = feed.querySelector('.HlvSq');
    if (note && note.offsetParent !== null || idle >= 15) {
      if (retry.length) {
        todo = retry.splice(0);
        return later(next, 0);
      }
      return ask('No more places in this list. Drag or zoom the map to load more places (press “Search this area” if it shows), or press Finish.');
    }
    feed.scrollTop = idle % 2 ? feed.scrollHeight - feed.clientHeight - 400 : feed.scrollHeight;
    status.textContent = idle > 2 ? 'Waiting for Google Maps to load more…' : 'Scrolling the list for more places…';
    later(next, 1200);
  }

  var tries = {};
  var misses = 0;
  var moved = false;
  function open(k, gone) {
    var r = byKey[k];
    var a = linkFor(k);
    if (!a) {
      gone = gone || 0;
      if (!moved && gone < 6000 && document.querySelector('div[role="feed"]')) {
        return later(function () { open(k, gone + 500); }, 500);
      }
      moved = true;
      done();
      return later(next, 0);
    }
    moved = false;
    paint(a.closest('.Nv2PK') || a.parentElement);
    place.textContent = r.name;
    status.textContent = 'Reading place ' + (opened + 1) + ' of ' + rows.length + '…';
    a.scrollIntoView({ block: 'center' });
    a.click();
    var waited = 0;
    function wait() {
      if (!running) return;
      var p = panelFor(r.name);
      if (p) {
        misses = 0;
        return later(function () {
          if (!running) return;
          readPanel(panelFor(r.name) || p, r);
          done();
          later(next, 600 + Math.random() * 800);
        }, 800);
      }
      waited += 250;
      if (waited === 20000) {
        misses++;
        status.textContent = 'Google Maps is slow to open places. Waiting a moment…';
      }
      if (waited < 20000 + Math.min(misses, 4) * 15000) return later(wait, 250);
      if (tries[k]) done();
      else retry.push(k);
      tries[k] = 1;
      later(next, 0);
    }
    later(wait, 250);
  }
  function done() {
    opened++;
    count.textContent = String(opened);
  }

  function ask(msg) {
    asking = true;
    paint(null);
    place.textContent = '';
    if (spin) spin.pause();
    status.style.cssText = ASKING;
    status.textContent = msg;
    fin.style.display = 'block';
    later(next, 1500);
  }
  function unask() {
    asking = false;
    status.style.cssText = STATUS;
    fin.style.display = 'none';
    if (spin) spin.play();
  }
  function end(msg) {
    running = false;
    clearTimeout(timer);
    if (asking) unask();
    paint(null);
    place.textContent = '';
    if (spin) spin.cancel();
    ring.style.borderColor = PURPLE;
    count.textContent = String(rows.length);
    status.textContent = msg;
  }

  function close() {
    running = false;
    clearTimeout(timer);
    paint(null);
    box.remove();
    delete window[KEY];
  }

  x.onclick = close;
  var WIDE = 1200;
  go.onclick = function () {
    if (window.innerWidth < WIDE) {
      status.textContent = 'Make the window wider first (maximize it, or zoom the page out with Ctrl or ⌘ and −), then press Go. Google Maps needs room to show each place next to the list.';
      return;
    }
    go.style.display = 'none';
    csv.style.display = 'block';
    ready.style.display = 'none';
    count.style.display = 'block';
    unit.style.display = 'block';
    ring.style.borderTopColor = PURPLE;
    if (ring.animate) spin = ring.animate([{ transform: 'rotate(0deg)' }, { transform: 'rotate(360deg)' }], { duration: 1000, iterations: Infinity });
    status.textContent = 'Opening the places…';
    running = true;
    next();
  };
  fin.onclick = function () {
    end('Done. Download your CSV.');
  };
  csv.onclick = function () {
    var blob = new Blob([String.fromCharCode(0xfeff) + table()], { type: 'text/csv;charset=utf-8' });
    var a = el('a');
    a.href = URL.createObjectURL(blob);
    a.download = file;
    document.body.appendChild(a);
    a.click();
    a.remove();
    setTimeout(function () { URL.revokeObjectURL(a.href); }, 5000);
  };
  window[KEY] = { close: close };
})();

ดึงข้อมูลจากเว็บไซต์ใดก็ได้ ไม่ใช่แค่ Google Maps

ScrapePass เปลี่ยนหน้าเว็บใดก็ได้ให้เป็นข้อมูลที่สะอาด พร้อมเทมเพลตสำเร็จรูปสำหรับ AliExpress, Craigslist, Agoda, G2 and 26 more เริ่มต้นฟรี ไม่ต้องมีบัญชี: รันเต็มรูปแบบ 10 ครั้งต่อเดือน ต้องการมากกว่านี้ไหม Pro ให้รันได้ไม่จำกัดเริ่มต้น $5 ต่อเดือน

เพิ่มใน Chrome