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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for my_wiki_bot-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a637abbbbd3ea8b4042b9e3ea01f71edbb144293c8cd896d8e6de7c58f3799b |
|
MD5 | ce5e2cc9ccd0cd645a4a87504f4f17b1 |
|
BLAKE2b-256 | ae2b0f7c6e0490eff31175d942560a9d06018f7e326cf7c334b0683d688f2681 |