Before Getting Rich: Batch Export Merchant Phone Numbers by City and Keyword

# Introduction

When acquiring customers offline or conducting local business research, it is often necessary to search for a batch of stores by category within a specific city, and then organize them into a list of mobile numbers that can be imported into contacts or spreadsheets. Manually copying entries one by one in map apps is difficult to scale.

The following introduces the SkillHub community Skill “You Qian Zhi Qian” (@user_e1f92728/yqzq283928, v1.0.11, category life-service). It strings together POI searches from Amap, Baidu, and Tencent maps into a “ladder degradation” pipeline. It allows searching for merchants by keywords in any city nationwide and simultaneously generates Excel and vcf contact files on the desktop. The Skill is marked requires_api_key=true; you need to apply for and configure a map Web Service key yourself before use.

# What is this

“You Qian Zhi Qian” is maintained by community publisher user_e1f92728 and sourced from the community. Its positioning is multi-map merchant mobile number search (subtitle in the Skill package: “Ladder Degradation Version”): The Agent understands your “city + multiple keywords” intent according to the Skill instructions and calls the included Python script scripts/amap_search.py to complete the search and export when necessary.

Official entries:

  • API Page: https://api.skillhub.cn/user_e1f92728/yqzq283928
  • SkillHub Page: https://www.skillhub.cn/skills/user_e1f92728/yqzq283928

As of the script capture, the Skill’s rating on SkillHub is 100000, with 1180 downloads.

# Core Features

Verified capabilities are as follows (all from v1.0.11 package SKILL.md and scripts/amap_search.py):

  1. National City + Multi-keyword Search: Input format is “City Keyword1 Keyword2 …”, e.g., “Xiamen Cake Dessert Bread”.
  2. Ladder Degradation: Defaults to using only Amap (3-level administrative divisions, described as the most accurate in the Skill); automatically switches to Baidu when Amap’s daily quota is exhausted, and then to Tencent when Baidu is exhausted; if all three are exhausted, it prompts to try again the next day. It notifies the currently used map when switching.
  3. Dual-format Output: Generates {City}_{Date}.xlsx (store name, mobile number, address, etc.) and a same-named .vcf (for importing into phone contacts) on the desktop; --out can be used to specify the output directory.
  4. Number Filtering Rules (references/quickstart.md): Only mobile numbers are kept; landline formats are filtered out; for the same store name, only the first matched mobile number is kept.
  5. Keys not in Skill Repository: The Key is written in the user’s local config file, not in the skill file.
Platform Daily Quota Description in Skill Docs
Amap 5000 times
Baidu Unknown (Backup)
Tencent 10000 times (Backup)

# Installation and Activation

Install SkillHub CLI

If not installed, check or install the CLI according to the official SkillHub installation documentation:

command -v skillhub && skillhub --version

If not installed, you can execute (full installation, including default Skills):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

See instructions at: https://skillhub.cn/install/skillhub.md

Install “You Qian Zhi Qian”

The installation prompt provided by the official page is: According to the above installation documentation, install @user_e1f92728/yqzq283928. The equivalent command shown by CLI search results is:

skillhub install yqzq283928 --namespace user_e1f92728 --dir <Current Agent's skills directory>

Skills directories for different clients (excerpted from SkillHub installation documentation):

  • Cursor: ~/.cursor/skills/
  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project

After installation, the Agent needs to reload skills (methods vary by client, refer to your environment).

Configure Map API Key

SKILL.md requires configuring at least an Amap Web Service Key; Baidu and Tencent Keys are optional, used for degradation.

Write to ~/.qclaw/workspace/map_config.json:

{
  "amap_key": "Your Amap Web Service API Key (Required)",
  "baidu_key": "Your Baidu AK (Optional)",
  "tencent_key": "Your Tencent Key (Optional)"
}

The script amap_search.py also supports the old filename ~/.qclaw/workspace/amap_config.json (if only amap_key is present, it will be read and mapped to the unified config).

Application addresses (Skill documentation and script prompts):

  • Amap: https://console.amap.com/dev/key/app (Select “Web Service” for Key type)
  • Baidu: https://lbsyun.baidu.com (Select “Server-side” for application type); the script degradation prompt also includes https://lbsyun.baidu.com/apiconsole/key/create
  • Tencent: https://lbs.qq.com/console/mykey.html (The script prints this when tencent_key needs configuration)

# Typical Usage

Usage in Conversation

After configuring the Key, send a single line query directly according to the Skill convention, e.g.:

Xiamen Cake Dessert Bread
Beijing Hot Pot Barbecue Chuan Chuan
Shanghai Milk Tea Coffee Dessert

After the Agent completes the search according to the Skill process, it should inform you of the paths to the .xlsx and .vcf files on the desktop.

Run Script Directly in Command Line

The script in the Skill package supports independent invocation (requires local Python 3):

python scripts/amap_search.py City "Keyword1 Keyword2" [Output Prefix] [--out Directory]

The default output directory is ~/Desktop; the cache directory is ~/.qclaw/workspace/.map_cache.

# Applicable Scenarios and Notes

Who is it for

  • Professionals who need to batch retrieve merchant contact information by multiple category keywords in a specified city and export to Excel or vcf (Skill category is a life service customer acquisition tool).
  • Developers or operators who can apply for and manage Amap (and optionally Baidu, Tencent) Map Open Platform keys.

Limitations and Notes

  1. Dependence on External Network and Quota: All three maps have call quotas; degradation only occurs when Amap is exhausted. You need to pay attention to console usage and compliance usage scope yourself.
  2. Configuration Path: The Skill and script read/write ~/.qclaw/workspace/ by default; when using in environments like Cursor, ensure this path is writable, or confirm that the Agent will call the script according to the Skill rather than just replying verbally.
  3. Data Compliance: The exported data is contact information from public POIs. Actual usage must comply with map platform service terms, personal information protection regulations, and business scenario requirements; the Skill itself does not provide desensitization or authorization verification.
  4. Documentation Differences: references/quickstart.md mainly uses the Windows path example amap_config.json; the main process follows map_config.json in SKILL.md, and the script is compatible with both.

# Conclusion

“You Qian Zhi Qian” encapsulates multi-map search, quota degradation, and Excel/vcf export into an Agent Skill, allowing you to complete a round of local merchant mobile number organization with “city + keywords”. Installation and key configuration should follow the SkillHub official page and https://skillhub.cn/install/skillhub.md; for Skill details, see https://www.skillhub.cn/skills/user_e1f92728/yqzq283928.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye