从源码运行时需自行编辑 run.py 再执行;README 中 Google Search 抓取、邮件和短信发送仍只是项目预期,尚未实现
Lead-Generation
Madi-SMIT活跃维护用 Python 写的批量获客脚本,让没有编程基础的人也能大规模采集潜在客户线索,内置多种爬虫与解析技巧。
Python script, which empowers people with no programming background to generate robust leads on a mass scale. This repo will be compiled of various versatile techniques used in lead generation.
1.0.1发布于 2024-09-24 17:46 UTC683star113fork同步于 2026-11-07 07:34 UTC
用异步 Python 从 Google Maps 和 Yelp 批量抓取商家线索并导出 CSV
用 Python 写的批量获客脚本,让没有编程基础的人也能大规模采集潜在客户线索,内置多种爬虫与解析技巧。
核心能力
- 异步调用 GoogleMapsEngine 按关键词和地点抓取商家
- 用 YelpEngine 抓取 Yelp 商家线索
- 支持指定 Google Maps 缩放级别控制搜索范围
- 结果一键导出为 CSV 文件
容易踩的坑
内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README
- 1.0.1最新正式版2024-09-24 · 2024-09-24 17:46 UTC
General fix of crucial method _parse_data_with_soup
What's Changed
- fix: correct parsing of address, phone, and website in _parse_data_with_soup by @leonardobits in https://github.com/Madi-S/Lead-Generation/pull/4
New Contributors
- @leonardobits made their first contribution in https://github.com/Madi-S/Lead-Generation/pull/4
Full Changelog: https://github.com/Madi-S/Lead-Generation/commits/1.0.1
用户点评
登录用户的真实使用记录,可按版本和硬件筛选共 0 条
还没有人点评。第一个说出真实体验的人最有价值。
Lead-Generation
The updated version (and sort of abandoned) of my outdated dirty clumsy package (collection of scripts) for lead generation
Installation
Using pip (recommended)
pip install py-lead-generation
OR using from source code (not recommended)
git clone https://github.com/Madi-S/Lead-Generation
cd Lead-Generation
# Edit run.py for your needs
python run.py
OR to use the previous archived version
git clone https://github.com/Madi-S/Lead-Generation
cd Lead-Generation
cd archived
cd google-maps
python extractor.py
Quickstart
import asyncio
from py_lead_generation import GoogleMapsEngine, YelpEngine
async def main() -> None:
q = input('Enter your search query: ').strip() or 'Barbershop'
addr = input('Enter the location you would like to search in: ').strip() \
or 'Paris'
zoom = float(input('[Optional] Enter google maps zoom: ').strip() or 12)
engine = GoogleMapsEngine(q, addr, zoom)
await engine.run()
engine.save_to_csv()
engine = YelpEngine('Pizza', 'Mexico, Pampanga, Philippines')
await engine.run()
engine.save_to_csv('pizza_leads.csv')
if __name__ == '__main__':
asyncio.run(main())
Current functionality
- Parse Google Maps
- Parse Yelp
- Export collected data to a CSV file
Expectations of this project:
- Parse Google Maps and Yelp for telephone number, email, address, and other information by given keyword
- Somehow parse search results in Google Search for the same information using regex or other algorithms
- Export all parsed data to CSV or Excel
- For parsed emails send a message, which will be prevented from going to spam
- For parsed telephone numbers send an SMS, which will be prevented from going to spam as well