Skip to main content

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)

Metadata

Release files for my-wiki-bot 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for my-wiki-bot 0.0.2
File Size Uploaded
my-wiki-bot-0.0.2.tar.gz 2.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for my-wiki-bot 0.0.2
File Interpreter ABI Platform
my_wiki_bot-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 5.4 kB

Release files / my-wiki-bot-0.0.2.tar.gz

Download URL my-wiki-bot-0.0.2.tar.gz
Size 2.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e54609adcf8d8406004ea023ef664738e418ca5c8fe9b724f01a5ba182048a64
BLAKE2b-256 checksum
How to use checksums
da891728dc0caf1823f9217506ace636de602e8a461044e7364d730025eb58ff
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / my_wiki_bot-0.0.2-py3-none-any.whl

Download URL my_wiki_bot-0.0.2-py3-none-any.whl
Size 3.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3a637abbbbd3ea8b4042b9e3ea01f71edbb144293c8cd896d8e6de7c58f3799b
BLAKE2b-256 checksum
How to use checksums
ae2b0f7c6e0490eff31175d942560a9d06018f7e326cf7c334b0683d688f2681
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page