Automate Your Blog Writting With Python Bot | codewitham

Python is a powerful language using which you can automate pretty much every mundane or complex task with some effort. All you need to get started is Python installed on your machine and the appropriate libraries installed on your computer.

Automation is a term for technology applications where human input is minimized. This includes business process automation (BPA), IT automation, personal applications such as home automation and more. A rich library of useful packages and ready-to-use ingredients for automation greatly facilitates testing in Python. Python is object-oriented and functional. It allows choosing what suits your tasks better – functions or classes. Distributed functions don’t have side effects, and simple syntax makes them readable.

Installation Of Python Package

import webbrowser
import pyautogui
import wikipedia
import pywikihow
import time

Make Sure To Follow These Steps

site = "yoursitename/create-post"
  1. Now We Are Going to use the best library for automation. We are going to use pyautogui to automate our blog writting.
  2. For Content Generation we are going to use wikipedia library.
  3. You need to run your script and within delay time you need to open your site.
  4. Make sure you have opened your write blogpost section. And You need to click on the add content or write content body section.
  5. Pywikihow is an optional package. After You have been written your blog you can use pywikihow script as metion below.
def Bot():
    query1 = str(input("Enter Topic for summery: "))
    query2 = str(input("Enter Topic for How To: "))
        site = "sitename/create-post"

        if "none" in query2:
            results = wikipedia.summary(query1, sentences = 100)

        elif "none" in query1:
            how_to = pywikihow.search_wikihow(query2, 1)

            results1 = wikipedia.summary(query1, sentences = 100)
            how_to = pywikihow.search_wikihow(query2, 1)
            pyautogui.write(results1 + how_to[0].summary)
    except Exception as e:
        print("Some error occurred", e)


1 Comment

Leave a Reply

For News Subscribe Us!

Can curiosity may end shameless explained. True high on said mr on come. An do mr design at little myself wholly entire though. Attended of on stronger or mr pleasure.

You have been successfully Subscribed! Ops! Something went wrong, please try again.

© 2022 Code With AM