Spaces:
Sleeping
Sleeping
File size: 982 Bytes
53e65b7 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
import csv
def create_clusters_csv():
"""Create the initial clusters.csv file with proper headers"""
with open('clusters.csv', 'w', newline='', encoding='utf-8') as file:
writer = csv.writer(file)
writer.writerow(['Keywords', 'Intent', 'Primary Keyword', 'Status'])
# Create clusters.csv
with open('clusters.csv', 'w', newline='') as file:
writer = csv.writer(file)
writer.writerow(['Cluster', 'Keywords', 'Intent', 'Primary Keyword', 'Status'])
# Add some sample data
# writer.writerow(['1', 'ai tools, business productivity, automation', 'Learn about AI tools', 'ai tools for business', 'no'])
writer.writerow(['2', 'Nanobotz it solutions company, nanobotz it solutions company details', 'nanobotz it solutions', 'nanobotz it solutions', 'no'])
# Create completed_posts.csv
with open('completed_posts.csv', 'w', newline='') as file:
writer = csv.writer(file)
writer.writerow(['Title', 'Keywords', 'Meta Description', 'URL']) |