MCPcopy Index your code
hub / github.com/Madi-S/Lead-Generation

github.com/Madi-S/Lead-Generation @1.0.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.0.1 ↗ · + Follow
100 symbols 357 edges 40 files 32 documented · 32% updated 13d ago1.0.1 · 2024-09-24★ 2481 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Lead-Generation

The updated version of my outdated dirty clumsy with a shockingly high amount of stars repository on Python

Installation

pip install py-lead-generation

Pypi Link

OR

git clone https://github.com/Madi-S/Lead-Generation
cd Lead-Generation
cd archived
cd google-maps
python extractor.py

OR to use the previous archived version

git clone https://github.com/Madi-S/Lead-Generation
cd Lead-Generation
python run.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

Core symbols most depended-on inside this repo

Shape

Method 56
Function 19
Class 18
Route 7

Languages

Python100%

Modules by API surface

archived/app/views.py19 symbols
py_lead_generation/src/google_maps/engine.py12 symbols
archived/linkedin/extractor.py10 symbols
archived/yellow-pages/extractor.py7 symbols
archived/google-maps/extractor.py7 symbols
archived/app/models.py7 symbols
py_lead_generation/src/engines/base.py6 symbols
archived/webdriver.py5 symbols
py_lead_generation/src/yelp/engine.py4 symbols
py_lead_generation/src/misc/writer.py4 symbols
archived/bufferization.py4 symbols
archived/app/forms.py4 symbols

For agents

$ claude mcp add Lead-Generation \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page