commit 2a9287db6846b7c2cba2ede6f1e79b81b7a00b0f Author: Mindiell Date: Tue Jan 26 07:33:57 2021 +0100 First commit diff --git a/feed_read.py b/feed_read.py new file mode 100644 index 0000000..8367465 --- /dev/null +++ b/feed_read.py @@ -0,0 +1,12 @@ +# encoding: utf-8 + +import feedparser + +for entry in feedparser.parse("https://wiki.april.org/api.php?hidebots=1&urlversion=1&days=7&limit=50&action=feedrecentchanges&feedformat=atom")["entries"]: + print("\t".join(( + entry["updated"], + ",".join([a["name"] for a in entry["authors"]]), + entry["title"], + entry["link"], + ))) + diff --git a/hunspell b/hunspell new file mode 100644 index 0000000..933e122 --- /dev/null +++ b/hunspell @@ -0,0 +1 @@ +unspell -d fr_FR -a result_page.txt |grep "&" diff --git a/mediawiki_spell.py b/mediawiki_spell.py new file mode 100644 index 0000000..bd937ce --- /dev/null +++ b/mediawiki_spell.py @@ -0,0 +1,9 @@ +#encoding: utf-8 + +from bs4 import BeautifulSoup +import requests + +result = requests.get("https://wiki.april.org/index.php?title=Reunion_du_21_janvier_2021") +soup = BeautifulSoup(result.content.replace(b"<", b" <"), features="html.parser") +print(soup.text) +