-
Notifications
You must be signed in to change notification settings - Fork 0
Work in progress. Collection of python and php to help create programmatic SEO campaign
License
Saltiola7/programmatic_seo_python
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
>This repo is a work in progress. # pSEO Documentation This repo is a collection of scripts that help in creating a programmatic and automatic SEO campaign ## [main.py](main.py) This Python script automates the process of generating keyword combinations from templates and city names, and populates a database with these combinations for further use: 1. Fetch Data from ClickHouse: It retrieves data from a ClickHouse database using two specific queries: Retrieves programmatic_structure from the default.lvi_programmatic_structures table. Retrieves city names from the default.fi_cities table. 2. Generate Combinations: For each programmatic_structure retrieved, it generates combinations by replacing placeholders in the structure with each city name fetched. This is done using regular expressions to find placeholders in the structure string and replacing them with city names. 3. Insert Combinations into ClickHouse: After generating all possible combinations of structures and city names, these combinations are formatted as SQL insert values and batch-inserted back into a ClickHouse table named lvi_programmatic_keywords. 4. Configuration and Authentication: The script uses a predefined configuration for the ClickHouse database connection, including URL, username, password, and headers necessary for making HTTP requests. 5. Execution Flow: The script encapsulates the functionality in a main() function which orchestrates fetching data, generating combinations, and inserting them back into the database. This function is called when the script is executed as the main program.
About
Work in progress. Collection of python and php to help create programmatic SEO campaign
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published