井戸端の底をPythonで取得する
code:井戸端の底500件リストを取得.py
import requests, json, os
pgcountjsont = pgcountjsonr.text
pgcountjson = json.loads(pgcountjsont)
pglist = []
pglisttempjsonr = requests.get(
)
pglisttempjsont = pglisttempjsonr.text
pglisttempjson = json.loads(pglisttempjsont)
for a, b in enumerate(pglisttempjson"pages"): with open(
os.path.join(os.path.dirname(__file__), "villagepump-list.txt"),
"w",
encoding="utf-8",
newline="\n",
) as f:
for a in pglist: