Skip to main content

A simple wrapper of atlassian-python-api for complex confluence page content modification.

Project description

WikiBot

This is a simple wrapper of atlassian-python-api for complex confluence page content modification.

Install

$ pip install my-wiki-bot

Feature

  • Only 1 method extended modify_content_with_bs4.
  • This method needs a modification callback input, which allows user to access and modify the page content bs4.BeautifulSoup object.

Example

from bs4 import BeautifulSoup
from wikibot import WikiBot


def modification_callback(soup):
    a = soup.find('table').find_all_next('tr')[6].find_all_next('td')[6].div
    a.append(BeautifulSoup('<b>WikiBot is awesome!</b>', 'html.parser'))


wiki_bot = WikiBot(url='https://localhost', username='WikiBot', password='*******')

wiki_bot.modify_content_with_bs4(space='My Space', title='Demo', modification_callback=modification_callback)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

my-wiki-bot-0.0.2.tar.gz (2.2 kB view hashes)

Uploaded Source

Built Distribution

my_wiki_bot-0.0.2-py3-none-any.whl (3.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page