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

怎么上手

由 README 提炼,执行前请确认
pip install py-lead-generation
硬件要求按 README 说明

README 未说明

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

用异步 Python 从 Google Maps 和 Yelp 批量抓取商家线索并导出 CSV

用 Python 写的批量获客脚本,让没有编程基础的人也能大规模采集潜在客户线索,内置多种爬虫与解析技巧。

核心能力

  • 异步调用 GoogleMapsEngine 按关键词和地点抓取商家
  • 用 YelpEngine 抓取 Yelp 商家线索
  • 支持指定 Google Maps 缩放级别控制搜索范围
  • 结果一键导出为 CSV 文件

容易踩的坑

从源码运行时需自行编辑 run.py 再执行;README 中 Google Search 抓取、邮件和短信发送仍只是项目预期,尚未实现

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

1 个版本1.0.1
  1. 1.0.1最新正式版2024-09-24 · 2024-09-24 17:46 UTC

    General fix of crucial method _parse_data_with_soup

    What's Changed

    New Contributors

    Full Changelog: https://github.com/Madi-S/Lead-Generation/commits/1.0.1

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    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
    

    Pypi Link

    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