1. Home
  2. Blog
  3. Python

Create the Best SEO Articles Using Artificial Intelligence and Python

Eric Jorge Seguí Parejo2 min read
0%

Want to create automated content like this?

python script for ai text

I’ll tell you how to do it in exchange for your email

Send me the script

How does it work?

The script runs on Google Colab, the OpenAI API and WordPress.

It creates content by analysing the titles, descriptions, headings and subheadings of the Google Top 10.

All this information is then used to generate an optimised SEO article.

On top of all that, it also creates images or embeds videos at random within the content to enrich it.

At the end of the content, it adds a few sources and a FAQ section with schema markup.

Getting Started

Create a CSV file with a column called Keywords.

Next, add the list of keywords you want to create content for.

The script will use Google to analyse the best articles and create content designed to meet the search intent.

keywords python seo ai script
ai content output

Customise the output!

👉 Enter your OpenAI API key.

👉 Choose between GPT4 and GPT3.5.

👉 Define the categories the articles will be sorted into automatically.

👉 Publish the content straight away or leave it as a draft to review.

👉 Define the purpose of the text to be generated.

👉 Select the tone of the article.

👉 Set the character of the content you want to create.

👉 Choose the copywriting framework that best suits your needs.

👉 Customise up to 11 random prompts to generate the images for the content and give it a more visual feel with DALL·E 2.

👉 Upload your CSV with the keywords you want to create content for and the script will do everything for you.

Define the prompt for the 11 images

customise image prompts

Run the script

Run the script with a single click!

run script

Upload the keywords

Upload the CSV when the option becomes available:

upload keywords

Leave the script running and… BOOM!

Now all that’s left is to wait and you’re done!

The script usually takes around 1 hour to produce the articles, depending on the topic, but you can follow its progress at the end of the script, where you’ll be able to read messages about the task it’s running or the text it’s writing.

ai article status

Use the script for free in exchange for your email!

Send me the script

If you have any questions, ask on Telegram!

Python can also be used to automate SEO analysis, review content and prioritise technical tasks. I offer this as a service, as explained in the guide to my work as a Python SEO consultant in Valencia.

Eric in pixel art reading a book
Eric Jorge Seguí Parejo

Technical SEO consultant in Valencia for more than 16 years. Speaker and organiser at WordCamp Valencia and author on the Semrush and Publisuites blogs. More about me

Share

Shall we apply it to your website?

Tell me what's happening with your website and I'll tell you whether I can help and when I'm available.