import webbrowser as wb
import requests
from lxml import etree
import lxml.html
import csv
def parse(url):
api = requests.get(url)
tree = lxml.html.document_fromstring(api.text)
text = tree.xpath('//*[@id="mw-content-text"]/p/text()')
print(text)
parse('https://ru.wikipedia.org/wiki/%D0%A0%D0%B5%D0%BA%D1%83%D1%80%D1%81%D0%B8%D1%8F')