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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file my-wiki-bot-0.0.2.tar.gz.

File metadata

  • Download URL: my-wiki-bot-0.0.2.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.1

File hashes

Hashes for my-wiki-bot-0.0.2.tar.gz
Algorithm Hash digest
SHA256 e54609adcf8d8406004ea023ef664738e418ca5c8fe9b724f01a5ba182048a64
MD5 548691841f4ff3f493441a0354da3a3e
BLAKE2b-256 da891728dc0caf1823f9217506ace636de602e8a461044e7364d730025eb58ff

See more details on using hashes here.

File details

Details for the file my_wiki_bot-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: my_wiki_bot-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.1

File hashes

Hashes for my_wiki_bot-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3a637abbbbd3ea8b4042b9e3ea01f71edbb144293c8cd896d8e6de7c58f3799b
MD5 ce5e2cc9ccd0cd645a4a87504f4f17b1
BLAKE2b-256 ae2b0f7c6e0490eff31175d942560a9d06018f7e326cf7c334b0683d688f2681

See more details on using hashes here.

Supported by

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