Всем привет! Есть скрипт:
import ConfigParser
import sys
import json
import requests
import lxml
from BeautifulSoup import BeautifulSoup
from lxml import etree
conf = ConfigParser.RawConfigParser()
conf.read('/home/username/py_scripts/conf.cfg')
BASE_URL = conf.get('confluence', 'confluence_connection_string')
USERNAME = conf.get('confluence', 'confluence_user')
PASSWD = conf.get('confluence', 'confluence_password')
r = requests.get((BASE_URL), auth=(USERNAME, PASSWD))
soup = BeautifulSoup(r.content)