Browse Source

First commit

master
Mindiell 2 years ago
commit
2a9287db68
  1. 12
      feed_read.py
  2. 1
      hunspell
  3. 9
      mediawiki_spell.py

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

1
hunspell

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

9
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)
Loading…
Cancel
Save