First commit

This commit is contained in:
Mindiell 2021-01-26 07:33:57 +01:00
commit 2a9287db68
3 changed files with 22 additions and 0 deletions

12
feed_read.py Normal file
View File

@ -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"],
)))

1
hunspell Normal file
View File

@ -0,0 +1 @@
unspell -d fr_FR -a result_page.txt |grep "&"

9
mediawiki_spell.py Normal file
View File

@ -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)