mirror of https://github.com/tildeclub/site.git
Update gen_tdp
Added features=xml to fix python warnings.
This commit is contained in:
parent
d28b3c4041
commit
7d82a258c7
3
gen_tdp
3
gen_tdp
|
@ -19,7 +19,7 @@ for user in users:
|
|||
try:
|
||||
title = bs(
|
||||
requests.get(f"http://tilde.club/~{user}/", allow_redirects=False).text,
|
||||
"lxml",
|
||||
"lxml", features='xml'
|
||||
).title.text
|
||||
except:
|
||||
title = "No title"
|
||||
|
@ -36,4 +36,3 @@ tdp["users"] = tdpusers
|
|||
|
||||
with open("tilde.json", "w") as f:
|
||||
json.dump(tdp, f)
|
||||
|
||||
|
|
Loading…
Reference in New Issue