First commit
This commit is contained in:
commit
2a9287db68
|
@ -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"],
|
||||
)))
|
||||
|
|
@ -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…
Reference in New Issue