semvec/pypi-packages huggingface dataset:
py-lead-generation 1.0.1
Lead generation scripts
License: MIT
Requires Python: >=3.10
Keywords: python, lead generation, web automation, playwright, google maps, yelp

# Lead-Generation

The updated version of my outdated dirty clumsy with a shockingly high amount of stars repository on Python

# Installation

```bash
pip install py-lead-generation
```

[Pypi Link](https://pypi.org/project/py-lead-generation)

OR

```bash
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
```bash
git clone https://github.com/Madi-S/Lead-Generation
cd Lead-Generation
python run.py
```

# Quickstart

```python
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
django-audit-kafkalogger 0.2
A reusable Django app for auditing models automatically with Kafka integration
License: MIT
Requires Python: >=3.6

# Django Audit Logger

`django-audit-logger` is a reusable Django app that automatically audits model changes (create, update, delete) across all models in your Django project. It integrates with Kafka for log streaming and allows flexible configuration auditing for important models. The app captures useful metadata such as the user who made the changes, request IP, URL, and more.

## Features

- **Automatic Auditing**: Automatically register all Django models for audit logging after migrations.
- **Kafka Integration**: Uses `confluent_kafka` to send audit logs to Kafka topics.
- **Configuration Auditing**: Manually register important models for configuration auditing.
- **User Context Middleware**: Captures information about the user, request IP, and user agent via middleware.
- **Customizable**: You can extend or override middleware, and control the Kafka producer behavior.

## Installation

1. **INSTALL the package using pip**:

   ```bash
   pip install django-audit-kafkalogger
   
2. **Add it to your Django INSTALLED_APPS**:

    In your `settings.py`, configure the apps:
    ```python
   INSTALLED_APPS = [
       # Other installed apps
       'audit_logger',
   ]

3. **Add the MIDDLEWARE**:

    In your `settings.py`, configure the middlewares:
    ```python
   MIDDLEWARE = [
       # Other middlewares
       'audit_logger.middlewares.AuditUserMiddleware',
   ]

4. **Add KAFKA CONFIGURATION**:
    
    In your `settings.py`, configure the Kafka broker and topics:
    ```python
    KAFKA_BROKER_URL = 'localhost:9092'  # Replace with your Kafka broker URL
    KAFKA_TOPIC_LOGS = 'audit_logs'      # Topic for log auditing
    KAFKA_TOPIC_ERRORS = 'audit_errors'  # Topic for error logging
    KAFKA_TOPIC_CONFIG = 'audit_config'  # Topic for configuration auditing